static void Main() { FlyingCar car = new FlyingCar(); car.fly(); car.Run(); Flying(car); FlyingBike bike = new FlyingBike(); bike.fly(); bike.Run(); Flying(bike); }
static void Main() { FlyingCar car = new FlyingCar(); car.Fly(); car.Run(); Flying(car); FlyingBike bike = new FlyingBike(); bike.Fly(); bike.Run(); Flying(bike); FlyingWoosick woosick = new FlyingWoosick(); woosick.Fly(); woosick.Run(); Flying(woosick); }