Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Car car1 = new Car(); //super class

            car1.carStart();
            car1.carStop();

            SportCar sportCar1 = new SportCar(); //sub class

            sportCar1.onTurbo();
            sportCar1.carStop(); //overrided method

            Console.ReadLine();
        }