Beispiel #1
0
        static void Main()
        {
            FlyingCar car = new FlyingCar();

            car.Fly();
            car.Run();
            Flying(car);

            FlyingBike bike = new FlyingBike();

            bike.Fly();
            bike.Run();
            Flying(bike);
        }
Beispiel #2
0
        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);
        }