public override string ToString() { return(Entree.ToString() + " Combo"); }
/// <summary> /// able to print all combo /// </summary> /// <returns></returns> public override string ToString() { return($"{Entree.ToString()} Combo"); }
/// <summary> /// Creates a new instance of CretaceousCombo with the desired entree, /// default side, and default drink /// </summary> /// <param name="entree"> Entree chosen for the combo </param> public CretaceousCombo(Entree entree) { this.Entree = entree; this.Side = new Fryceritops(); this.Drink = new Sodasaurus(); }
/// <summary> /// A public constructor setting the price and calories for this class. /// </summary> public CretaceousCombo(Entree entree) { Entree = entree; }
public CretaceousCombo(Entree entree) { Entree = entree; Side = new Fryceritops(); Drink = new Sodasaurus(); }
/// <summary> /// Allows user to input all 3 required fields /// </summary> /// <param name="entree"></param> /// <param name="side"></param> /// <param name="drink"></param> public CretaceousCombo(Entree entree, Side side, Drink drink) { this.Entree = entree; this.Side = side; this.Drink = drink; }
public CretaceousCombo(Entree e) { entree = e; side = new Fryceritops(); drink = new Sodasaurus(); }
/// <summary> /// Constructs a new combo with the specified entree /// </summary> /// <param name="entree">The entree to use</param> public CretaceousCombo(Entree entree) { this.Entree = entree; entree.PropertyChanged += OnItemChange; }
/// <summary> /// Constructs a new combo with the specified entree /// </summary> /// <param name="entree">The entree to use</param> public CretaceousCombo(Entree entree) { this.Entree = entree; NotifyOfPropertyChanged("Entree"); }
/// <summary> /// Constructs a new CretaceousCombo with the specified entree. /// </summary> /// <param name="e">The entree in the combo.</param> public CretaceousCombo(Entree e) { this.Entree = e; this.Toy = "Random Toy"; }
/// <summary> /// Override the ToString method. /// </summary> /// <returns></returns> public override string ToString() { string result = Entree.ToString(); return(result += " Combo"); }
public cretaceousecombo(Entree e) { this.Entree = e; side = new Fryceritops(); drink = new Sodasaurus(); }