public void ClientMethod(IComputerFactory factory) { IMainboard mainboard = factory.CreateMainboard(); IProcessor processor = factory.CreateProcessor(); Console.WriteLine(processor.ShowProcessor()); Console.WriteLine(processor.ShowProcessorStation(mainboard)); }
public void ClientMethod(IComputerFactory factory) { IMainboard mainboard = factory.CreateMainboard(); IProcessor processor = factory.CreateProcessor(); Console.WriteLine(processor.ShowBatteryVolume()); Console.WriteLine(processor.ShowBatteryChargeLevel(mainboard)); }