예제 #1
0
        static void Main(string[] args)
        {
            Vehicle car = new Vehicle("I20", "Red", 0, 4, 0);
            Vehicle bus = new Vehicle("TATA", "White", 2, 6, 2);

            car.Start();
            car.Display();
            car.Stop();

            Console.WriteLine();
            Console.WriteLine();

            bus.Start();
            bus.Display();
            bus.Stop();
        }
        static void Main(string[] args)
        {
            Vehicle car = new Vehicle("Ferari", "White", 0, 4, 0);
            Vehicle bus = new Vehicle("TATA", "Blue", 2, 4, 2);

            car.Display();
            car.start();
            car.stop();
            Console.WriteLine();
            Console.WriteLine();
            bus.start();
            bus.Display();
            bus.stop();

            //Vehicle truck=new Vehicle("Do Not KNow",")

            Console.ReadLine();
        }