Exemple #1
0
 public Whip(Beverage beverage)
 {
     this.beverage = beverage;
 }
 private static void DescribeBeverage(Beverage caffeLatte)
 {
     Console.WriteLine("Beverage: {0}, Cost: {1}", caffeLatte.Description, caffeLatte.Cost);
 }
Exemple #3
0
 public Whip(Beverage beverage)
 {
     this.beverage = beverage;
 }
Exemple #4
0
 public Mocha(Beverage beverage)
 {
     this.beverage = beverage;
 }
Exemple #5
0
 public Whip(Beverage beverage)
     :   base("Whip")
 {
     m_beverage = beverage;
 }
Exemple #6
0
 public Mocha(Beverage beverage)
 {
     this.beverage = beverage;
     price         = 0.2f;
 }
Exemple #7
0
 public Whip(Beverage beverage)
 {
     this.beverage = beverage;
     price         = 0.1f;
 }
Exemple #8
0
 public Mocha(Beverage beverage)
     :   base("Mocha")
 {
     m_beverage = beverage;
 }
 public Whip(Beverage beverage)
 {
     Description    = beverage.Description + ", Whip";
     this._beverage = beverage;
 }
 public Soy(Beverage beverage)
 {
     this.beverage = beverage;
 }
Exemple #11
0
 public Cream(Beverage newBeverage)
 {
     this.beverage = newBeverage;
 }
Exemple #12
0
 public Soy(Beverage beverage)
 {
     this.beverage = beverage;
 }
Exemple #13
0
 public Whip(Beverage b)
 {
     this.beverage = b;
 }
Exemple #14
0
 public Cream(Beverage newBeverage)
 {
     this.beverage = newBeverage;
 }
Exemple #15
0
 static void Print(Beverage beverage)
 {
     Console.WriteLine(beverage.GetDescription() + " $" + beverage.Cost());
 }
Exemple #16
0
 public Soy(Beverage b)
 {
     this.beverage = b;
 }
Exemple #17
0
 public Milk(Beverage beverage)
 {
     this.beverage = beverage;
 }
Exemple #18
0
 public Soy(Beverage beverage)
     :    base("Soy")
 {
     m_beverage = beverage;
 }
Exemple #19
0
 public Mocha(Beverage beverage)
 {
     this.beverage = beverage;
 }
Exemple #20
0
 public Mocha(Beverage b)
 {
     this.beverage = b;
 }
Exemple #21
0
 public Mocah(Beverage beverage)
 {
     this.beverage = beverage;
 }