Example #1
0
 public Client(CarFactory car_factory)
 {
     abstractCar     = car_factory.CreateCar();
     abstractEngine  = car_factory.CreateEngine();
     abstractCarBody = car_factory.CreateCarBody();
 }
Example #2
0
        public override string BodyType(AbstractCarBody carBody)
        {
            string bodyName = carBody.bodyType;

            return("Тип кузова " + bodyName);
        }
Example #3
0
 public abstract string BodyType(AbstractCarBody body);