Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Sedan   car1   = new Sedan(20);
            Truck   truck1 = new Truck(20, 500);
            Bicycle bike1  = new Bicycle(-10);

            Console.WriteLine(car1.Describe());
            Console.WriteLine(truck1.Describe());
            Console.WriteLine(bike1.Describe());
        }
        static void Main(string[] args)
        {
            Sedan s = new Sedan(60);

            Console.WriteLine(s.Describe());

            Truck t = new Truck(45, 500);

            Console.WriteLine(t.Describe());

            Bicycle b = new Bicycle(10);

            Console.WriteLine(b.Describe());
        }