how can i access a variable of type stringbuilder from another class? : <p>im new to c# and still learning, im not sure if i was correct to put this inside a struct, i want to access automotivedevice in another class to print out its information. How do i do this? </p>

<p>ive tried changing it from a struct to a class, i also made sure to instance the struct in the other class</p>

<pre><code>```  struct car
    {
        public void StringBuilder()
        {
            StringBuilder automotivedevice = new StringBuilder();
            Console.WriteLine("enter brand of the car");
            StringBuilder CarBrand = automotivedevice.AppendLine(Console.ReadLine());

            Console.WriteLine("enter mileage of the car");
            StringBuilder CarMileage = automotivedevice.AppendLine(Console.ReadLine());

            Console.WriteLine("enter number of cylinders in the car");
            StringBuilder NumberOfCylinders = automotivedevice.AppendLine(Console.ReadLine());
        }
    }```
</code></pre>
