using System;
public class Program
{
class Car{
public string model;
public Car()
model = "Mustang";
}
public static void Main()
Car Ford = new Car();
Console.WriteLine("The Ford object contains model: " + Ford.model);
//This variable has no idea that the Car class exists, or should even care. It's "scope" is limited to knowing what exists inside of it's parent method ( Main() )
string model = "Camaro";
//When we create a new instance of the Car class, it is looking at your constructor up there to see what it should do. Without that, Chevy.model (or even Ford.model) would give you an error saying it is a null reference (honestly your code wouldn't even compile)
Car Chevy = new Car();
//This isn't actually refering to the 'model' variable I created above. It is talking about the variable inside of the Car class.
Console.WriteLine("The Chevy object contains model: " + Chevy.model);
Console.WriteLine("The variable named model inside Main contains: " + model);
//If you already knew and could see all of this, you are absolutely fucking killing it! Like for real, you'll be ready to rip within a few weeks.
//If you like how this example and question works, let me know and I can easily throw more out there every now and then