예제 #1
0
        static void Main(string[] args)
        {
            Automovil   toyota        = new Automovil(4, 5, VehiculoTerrestre.Colores.Negro, 5, 5);
            Motocicleta harleyDavison = new Motocicleta(2, 0, VehiculoTerrestre.Colores.Gris, 150);
            Camion      scania        = new Camion(6, 2, VehiculoTerrestre.Colores.Blanco, 12, 15000);

            Console.WriteLine(toyota.ShowInfo());
            Console.WriteLine(harleyDavison.ShowInfo());
            Console.WriteLine(scania.ShowInfo());

            Console.ReadKey();
        }