Exemplo n.º 1
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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 3
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();
        }
Exemplo n.º 4
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();
        }