Esempio n. 1
0
 private void btnPudding_Click(object sender, EventArgs e)
 {
     milktea          = new Pudding(milktea);
     tbxChoosing.Text = milktea.Name();
 }
Esempio n. 2
0
 private void btnFruit_Click(object sender, EventArgs e)
 {
     milktea          = new Fruit(milktea);
     tbxChoosing.Text = milktea.Name();
 }
Esempio n. 3
0
 private void btnJelly_Click(object sender, EventArgs e)
 {
     milktea          = new Jelly(milktea);
     tbxChoosing.Text = milktea.Name();
 }
Esempio n. 4
0
/*            public virtual int Cost()
 *          {
 *              return _milkTea.Cost();
 *          }*/
        public virtual string Name()
        {
            return(_milkTea.Name());
        }