public void AssembleMachine() { IProcessor processor = category.GetRam(); IHardDisk hardDisk = category.GetHardDisk(); IMonitor monitor = category.GetMonitor(); processor.PerformOperation(); hardDisk.StoreData(); monitor.DisplayPicture(); }
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(); }
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(); }