Example #1
0
 public static void Main(string[] args)
 {
     Console.WriteLine("Carro Electrico \n");
     AutomovilElectricidad Leaf = new AutomovilElectricidad("Leaf", "Blanco", 90, 14.5);
     Leaf.mostrarCaracteristicas();
     Console.WriteLine("Carro Gasolina \n");
     AutomovilGasolina Mustang = new AutomovilGasolina("Mustang", "Negro", 240, 14.5);
     Mustang.mostrarCaracteristicas();
 }
        public static void Main(string[] args)
        {
            Console.WriteLine("Carro Electrico \n");
            AutomovilElectricidad Leaf = new AutomovilElectricidad("Leaf", "Blanco", 90, 14.5);

            Leaf.mostrarCaracteristicas();
            Console.WriteLine("Carro Gasolina \n");
            AutomovilGasolina Mustang = new AutomovilGasolina("Mustang", "Negro", 240, 14.5);

            Mustang.mostrarCaracteristicas();
        }