예제 #1
0
 public void GetAccumulatorType(Accumulator accumulator)
 {
     Console.WriteLine($"Тип аккумулятора: {accumulator.AccumulatorType}");
 }
예제 #2
0
 public Telephone(TelephoneFactory factory)
 {
     manufacturer = factory.CreateManufacturer();
     display      = factory.CreateDisplay();
     accumulator  = factory.CreateAccumulator();
 }