internal override ApplePrice CreateApplePriceFactory(string type) { ApplePrice ap = null; switch (type) { case "IpadMini": ap = new IpadMiniPrice(); break; case "IpadAir": ap = new IpadAirPrice(); break; default: break; } if (ap == null) throw new Exception(); return ap; }
internal override ApplePrice CreateApplePriceFactory(string type) { ApplePrice ap = null; switch (type) { case "IpadMini": ap = new IpadMiniPrice(); break; case "IpadAir": ap = new IpadAirPrice(); break; default: break; } if (ap == null) { throw new Exception(); } return(ap); }