Example #1
0
 public void AssembleComputer(ComputerFactory factory)
 {
     Computer computer = factory.GetComputer();
     Console.WriteLine($"assembled a {computer.GetType().Name} running at {computer.Mhz}");
 }
Example #2
0
        public void AssembleComputer(ComputerFactory factory)
        {
            Computer computer = factory.GetComputer();

            Console.WriteLine($"assembled a {computer.GetType().Name} running at {computer.Mhz}");
        }