Пример #1
0
 /// <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;
 }
Пример #2
0
        }//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
Пример #3
0
 public void addEntree(Entree e)
 {
     entree           = e;
     PropertyChanged += onPriceChanged;
 }
Пример #4
0
 /// <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;
 }