예제 #1
0
        public void AssembleMachine()
        {
            IProcessor processor = category.GetRam();
            IHardDisk  hardDisk  = category.GetHardDisk();
            IMonitor   monitor   = category.GetMonitor();

            processor.PerformOperation();
            hardDisk.StoreData();
            monitor.DisplayPicture();
        }
예제 #2
0
        public void AssembleMachine()
        {
            IProcessor processor = factory.GetRam();
            IHarddisk  hdd       = factory.GetHardDisk();
            IMonitor   monitor   = factory.GetMonitor();

            //use all three and create machine

            processor.GetProcessor();
            hdd.StoreData();
            monitor.Display();
        }
예제 #3
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();
        }