예제 #1
0
        static void Main(string[] args)
        {
            Camion    cam  = new Camion(6, 2, VehiculoTerrestre.Colores.gris, 10, 50000);
            Automovil auto = new Automovil(4, 4, VehiculoTerrestre.Colores.azul, 5, 5);
            Moto      moto = new Moto(2, 0, VehiculoTerrestre.Colores.rojo, 120);

            Console.ReadKey();
        }
예제 #2
0
        static void Main(string[] args)
        {
            Moto      zanella  = new Moto(50, 2, 0, Colores.Azul);
            Automovil gol      = new Automovil(5, 4, 4, 5, Colores.Rojo);
            Camion    mercedez = new Camion(6, 20000, 6, 3, Colores.Negro);

            Console.WriteLine(Moto.Mostrar(zanella));
            Console.WriteLine(Automovil.Mostrar(gol));
            Console.WriteLine(Camion.Mostrar(mercedez));
            Console.ReadKey();
        }
예제 #3
0
        static void Main(string[] args)
        {
            Moto      l1 = new Moto(2, 0, VehiculoTerrestre.Colores.Rojo, 250);
            Automovil l2 = new Automovil(4, 2, 4, 4, VehiculoTerrestre.Colores.Azul);
            Camion    l3 = new Camion(8, 2, VehiculoTerrestre.Colores.Negro, 6, 7000);

            Console.WriteLine(l1.Mostrar());
            Console.WriteLine(l2.Mostrar());
            Console.WriteLine(l3.Mostrar());
            Console.ReadKey();
        }
예제 #4
0
        static void Main(string[] args)
        {
            Moto      m = new Moto(2, 5, Colores.Blanco, 660);
            Automovil a = new Automovil(4, 4, 6, Colores.Negro, 5);
            Camion    c = new Camion(6, 2, 12, Colores.Gris, 2500);

            Console.WriteLine("Camion {0}  {1}  {2}  {3}  {4}", c.cantRuedas, c.cantidadDePuertas, c.cantMarchas, c.clr, c.pesoCarga);
            Console.WriteLine("Moto {0}  {1}  {2}  {3} ", m.cantRuedas, m.cantMarchas, m.clr, m.cilindrada);
            Console.WriteLine("Automovil {0}  {1}  {2}  {3}  {4}", a.cantRuedas, a.cantidadDePuertas, a.cantMarchas, a.clr, a.cantidadPasajeros);
            Console.ReadKey();
        }
예제 #5
0
        static void Main(string[] args)
        {
            Automovil auto   = new Automovil(4, 3, Colores.Azul, 6, 2);
            Moto      moto   = new Moto(2, 0, Colores.Rojo, 250);
            Camion    camion = new Camion(6, 2, Colores.Rojo, 16, 2000);

            Console.WriteLine("auto: {0} {1} {2} {3} {4}", auto.cantidadPasajeros, auto.cantidadMarchas, auto.color, auto.cantidadRuedas, auto.cantidadPasajeros);
            Console.WriteLine("moto: {0} {1} {2} {3} {4}", camion.cantidadMarchas, camion.cantidadPuertas, camion.color, camion.pesoCarga, camion.cantidadRuedas);
            Console.WriteLine("camion: {0} {1} {2} {3}", moto.cantidadPuertas, moto.cantidadRuedas, moto.color, moto.cilindrada);

            Console.ReadKey();
        }
예제 #6
0
        static void Main(string[] args)
        {
            Moto      m = new Moto(2, 0, VehiculoTerrestre.Colores.Azul, 35);
            Automovil a = new Automovil(4, 2, VehiculoTerrestre.Colores.Negro, 45, 5);
            Camion    c = new Camion(6, 4, VehiculoTerrestre.Colores.Rojo, 78, 67);

            Console.Write(m.Mostrar());
            Console.WriteLine();
            Console.Write(a.Mostrar());
            Console.WriteLine();
            Console.Write(c.Mostrar());

            Console.ReadKey();
        }
예제 #7
0
        static void Main(string[] args)
        {
            Automovil autoUno            = new Automovil(4, 4, VehiculoTerrestre.Color.Azul, 6, 5);
            Automovil autoDos            = new Automovil(2, 2, VehiculoTerrestre.Color.Blanco, 5, 2);
            Automovil autoTres           = new Automovil(4, 4, VehiculoTerrestre.Color.Rojo, 6, 3);
            Camion    camioncito         = new Camion(4, 2, VehiculoTerrestre.Color.Gris, 5, 30000);
            Moto      laMotitoDeCarlitos = new Moto(2, 0, VehiculoTerrestre.Color.Blanco, 6, 110);

            Console.WriteLine(autoUno.Mostrar());
            Console.WriteLine(autoDos.Mostrar());
            Console.WriteLine(autoTres.Mostrar());
            Console.WriteLine(camioncito.Mostrar());
            Console.WriteLine(laMotitoDeCarlitos.Mostrar());

            Console.ReadKey();
        }
예제 #8
0
 public static string Mostrar(Automovil a)
 {
     return(VehiculoTerrestre.Mostrar(a) + "\nMarchas " + a.cantidadMarchas + "\nPasajeros " + a.cantidadPasajeros);
 }