public IDessertMenu GetDessertMenu(DesserType desserType) { IDessertMenu dessertMenu; switch (desserType) { case DesserType.Cake: dessertMenu = new CakeMenu(); break; default: dessertMenu = new NullDesserMenu(); break; } return(dessertMenu); }
public IDessertMenu GetDessertMenu(DesserType desserType) { IDessertMenu dessertMenu; switch (desserType) { case DesserType.Biscuit: dessertMenu = new BiscuitMenu(); break; case DesserType.FrozenDessert: dessertMenu = new FrozenDessertMenu(); break; default: dessertMenu = new NullDesserMenu(); break; } return(dessertMenu); }