public static void Main()
Console.WriteLine("Hello World");
public Car(string owner, string maintainer, string designer)
_maintainer = maintainer;
private readonly string _owner;
private readonly string _maintainer;
private readonly string _designer;
public string Owner => _owner;
public string Maintainer => _maintainer;
public string Designer => _designer;
public class TwoTire : Car
public TwoTire(string owner, string maintainer, string designer, int twoTireVal)
: base(owner, maintainer, designer)
_twoTireVal = twoTireVal;
public TwoTire(Car car, int twoTireVal)
: base(car.Owner, car.Maintainer, car.Designer)
_twoTireVal = twoTireVal;
private readonly int _twoTireVal;
public int TwoTireVal => _twoTireVal;
public class ThreeTire : Car
public ThreeTire(string owner, string maintainer, string designer, int threeTireVal)
: base(owner, maintainer, designer)
_threeTireVal = threeTireVal;
private readonly int _threeTireVal;
public int ThreeTireVal => _threeTireVal;
public class FourTire : Car
public FourTire(string owner, string maintainer, string designer, int fourTireVal)
: base(owner, maintainer, designer)
_fourTireVal = fourTireVal;
private readonly int _fourTireVal;
public int FourTireTireVal => _fourTireVal;