C Sharp (C#) - Properties and Encapsulation
How can you combine init-only setters with inheritance to allow derived classes to set base class properties only during initialization?
public class Vehicle {
public string Make { get; init; }
}
public class Car : Vehicle {
public string Model { get; init; }
}