public string Name { get; set; }
public string EngineType { get; set; }
public int Mileage { get; set; }
Console.WriteLine(Name + "starting...");
Console.WriteLine(Name + "has stopped.");
public class Bus : Vehicle
public int DeckCount { get; set; }
public class Airplane : Vehicle
Console.WriteLine("Prepare for take off!");
Console.WriteLine("We are about to descend...");
public static void Main(string[] args)
Airplane a = new Airplane();