static void Main(string[] args) { Console.WriteLine("Hello World!"); var car = new Car(); var semi = new Semi(); Console.WriteLine(car.getManufacturer()); }
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(); }