C Sharp (C#) - Properties and Encapsulation
What will be the output of this code?
class Car {
public string Model { get; set; }
}
var car = new Car();
car.Model = "Tesla";
Console.WriteLine(car.Model);