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