Exemplo n.º 1
0
        public void CreateComputer(ComputerFactory computerFactory)
        {
            /* Moet de computershop worden gereturned?
             * ComputerShop computerShop = computerFactory.MakeComputerShop();
             */

            HardDisk  hardDisk  = computerFactory.MakeHardDisk();
            Monitor   monitor   = computerFactory.MakeMonitor();
            Processor processor = computerFactory.MakeProcessor();

            hardDisk.StoreData();
            monitor.Display();
            processor.PerformOperation();

            //return computerShop;
        }
Exemplo n.º 2
0
 public void CreateComputer(ComputerFactory factory)
 {
     factory.AssembleMachine();
 }