/// <summary> /// Constructor for the Combo class. /// </summary> /// <param name="e">Entree to be used in the combo.</param> /// <param name="s">Side to be used in the combo.</param> /// <param name="d">Drink to be used in the combo.</param> public Combo(Entree e, Side s, Drink d) { Entree = e; Side = s; Drink = d; }
}//end no-arg constructor /// <summary> /// Initializes the components of the combo along with the combo /// </summary> /// <param name="Entree">This combo's entree</param> /// <param name="Side">This combo's side</param> /// <param name="Drink">This combo's drink</param> public Combo(Entree Entree, Side Side, Drink Drink) { this.Entree = Entree; this.Side = Side; this.Drink = Drink; }//end 3-arg constructor
public void addEntree(Entree e) { entree = e; PropertyChanged += onPriceChanged; }
/// <summary> /// default constructor for a combo object /// </summary> /// <param name="drink">Drink to be used in combo</param> /// <param name="entree">Entree to be used in combo</param> /// <param name="side">Side to be used in combo</param> public Combo(Drink drink, Entree entree, Side side) { this.Drink = drink; this.Entree = entree; this.Side = side; }