Example #1
0
        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();
        }
Example #2
0
 public Driver(SuperCar superCar)
 {
     SuperCar = superCar;
 }