public void ClientMethod(IGUIFactory factory) { var productA = factory.CreateButton(); var productB = factory.CreateCheckBox(); var productC = factory.CreateRadioButton(); Console.WriteLine(productA.UsefulFunctioButton()); Console.WriteLine(productB.UsefulFunctionCheckBox()); Console.WriteLine(productC.UsefulFunctionRadioButton()); }