public void Assemble() { IMonitor monitor = CreateMonitor(); IProcessor processor = CreateProcessor(); IHardDisk hardDisk = CreateHardDisk(); processor.PerformOperation(); hardDisk.StoreData(); monitor.Display(); }
public void Assemble(ComputerFactory factory) { IMonitor monitor = factory.CreateMonitor(); IProcessor processor = factory.CreateProcessor(); IHardDisk hardDisk = factory.CreateHardDisk(); processor.PerformOperation(); hardDisk.StoreData(); monitor.Display(); }
public void AssembleMachine() { IProcessor processor = category.GetRam(); IHardDisk hardDisk = category.GetHardDisk(); IMonitor monitor = category.GetMonitor(); processor.PerformOperation(); hardDisk.StoreData(); monitor.DisplayPicture(); }
public void AssembleMachine() { IHardDisk disk = factory.createHarddisk(); disk.StoreData(); IMonitor monitor = factory.createMonitor(); monitor.Display(); IProcessor cpu = factory.createProcessor(); cpu.PreformOperation(); }
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(); }