Пример #1
0
 public string GetBodyType(AbstractBody body)
 {
     return(body.BodyType);
 }
Пример #2
0
 public Client(CarFactory car_factory)
 {
     abstractCar    = car_factory.CreateCar();
     abstractEngine = car_factory.CreateEngine();
     abstractBody   = car_factory.CreateBody();
 }