package factoryMethod.pentium; import factoryMethod.ComputerCreator; import factoryMethod.KeyBoard; import factoryMethod.Processor; public class PentiumCreator extends ComputerCreator { public KeyBoard GetKeyBoard() { // ..... return new KeyBoardFull(111, true); } public Processor GetProcessor() { // ...... return new Processor64(3500, 1000, 8); } }