Exemplo n.º 1
0
        public void AssembleMachine()
        {
            IProcessor processor = category.GetRam();
            IHardDisk  hardDisk  = category.GetHardDisk();
            IMonitor   monitor   = category.GetMonitor();

            processor.PerformOperation();
            hardDisk.StoreData();
            monitor.DisplayPicture();
        }
Exemplo n.º 2
0
        public void AssembleMachine()
        {
            IProcessor processor = category.GetRam();
            IHardDisk  hdd       = category.GetHardDisk();
            IMonitor   monitor   = category.GetMonitor();

            //use all three and create machine

            processor.PerformOperation();
            hdd.StoreData();
            monitor.DisplayPicture();
        }