static void Main(string[] args) { //Car car = new Car(); //Driver driver = new Driver(car); //driver.EhatCar(); SuperCar superCar = new SuperCar(); Driver driver = new Driver(superCar); driver.EhatCar(); Console.ReadLine(); }
public Driver(SuperCar superCar) { SuperCar = superCar; }