Example #1
0
    public void GetInformation(IPhone factory)
    {
        IDisplay     display     = factory.CreateDisplay();
        IAccumulator accumulator = factory.CreateAccumulator();

        Console.WriteLine($"Заряд батарии {display.GetAccumulatorVolume(accumulator)}");
    }