static void Main(string[] args) { Aircraft F35 = new F35(); Aircraft F16 = new F16(); F35.Fight(); Console.WriteLine(F16.Refill(200)); Console.WriteLine(F35.GetStatus()); Console.WriteLine(F35.IsPriority()); Console.WriteLine(F16.GettingType()); Console.ReadKey(); }
static void Main(string[] args) { F16 f16 = new F16(); Carrier plane = new Carrier(100, 100); f16.Refill(300000000); plane.Add(f16); plane.Add(f16); plane.Add(f16); plane.Add(f16); plane.Add(f16); Console.WriteLine(plane.GetStatus()); Console.ReadLine(); }