public override Computer BuildComputer(Computer.ComputerType compType) { if (compType == Computer.ComputerType.xps) { return(new xps()); } else if (compType == Computer.ComputerType.inspiron) { return(new inspiron()); } else if (compType == Computer.ComputerType.envoy) { return(new envoy()); } else if (compType == Computer.ComputerType.presario) { return(new presario()); } else { return(null); } }
public abstract Computer BuildComputer(Computer.ComputerType compType);
public BestBuy(Computer.ComputerType compType) { comp = compFactory.BuildComputer(compType); }