Exemple #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);
        }
Exemple #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);
        }