Example #1
0
 public override string ToString()
 {
     return(Entree.ToString() + " Combo");
 }
Example #2
0
 /// <summary>
 /// able to print all combo
 /// </summary>
 /// <returns></returns>
 public override string ToString()
 {
     return($"{Entree.ToString()} Combo");
 }
Example #3
0
 /// <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;
 }
Example #5
0
 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;
 }
Example #7
0
 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;
 }
Example #9
0
 /// <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");
 }
Example #10
0
 /// <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";
 }
Example #11
0
        /// <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();
 }