Example #1
0
        public static void Run()
        {
            CVehicle Car  = new CVehicle();
            CVehicle Bike = new CVehicle();

            ICar  ICar  = Car as ICar;
            IBike IBike = Bike as IBike;

            ICar.CarM1();
            ICar.CarM2();
            IBike.BikeM1();
            IBike.BikeM2();
        }