Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            var car  = new Car();
            var semi = new Semi();

            Console.WriteLine(car.getManufacturer());
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Car  car1  = new Car("honda", "civic", "white", 4);
            Semi semi1 = new Semi("toyota", "semi", "black", 2);

            Console.WriteLine("---CAR---");
            car1.print();
            Console.WriteLine("---SEMI---");
            semi1.print();
        }