Пример #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);
 }
Пример #3
0
 public Whip(Beverage beverage)
 {
     this.beverage = beverage;
 }
Пример #4
0
 public Mocha(Beverage beverage)
 {
     this.beverage = beverage;
 }
Пример #5
0
 public Whip(Beverage beverage)
     :   base("Whip")
 {
     m_beverage = beverage;
 }
Пример #6
0
 public Mocha(Beverage beverage)
 {
     this.beverage = beverage;
     price         = 0.2f;
 }
Пример #7
0
 public Whip(Beverage beverage)
 {
     this.beverage = beverage;
     price         = 0.1f;
 }
Пример #8
0
 public Mocha(Beverage beverage)
     :   base("Mocha")
 {
     m_beverage = beverage;
 }
Пример #9
0
 public Whip(Beverage beverage)
 {
     Description    = beverage.Description + ", Whip";
     this._beverage = beverage;
 }
Пример #10
0
 public Soy(Beverage beverage)
 {
     this.beverage = beverage;
 }
Пример #11
0
 public Cream(Beverage newBeverage)
 {
     this.beverage = newBeverage;
 }
Пример #12
0
 public Soy(Beverage beverage)
 {
     this.beverage = beverage;
 }
Пример #13
0
 public Whip(Beverage b)
 {
     this.beverage = b;
 }
Пример #14
0
 public Cream(Beverage newBeverage)
 {
     this.beverage = newBeverage;
 }
Пример #15
0
 static void Print(Beverage beverage)
 {
     Console.WriteLine(beverage.GetDescription() + " $" + beverage.Cost());
 }
Пример #16
0
 public Soy(Beverage b)
 {
     this.beverage = b;
 }
Пример #17
0
 public Milk(Beverage beverage)
 {
     this.beverage = beverage;
 }
Пример #18
0
 public Soy(Beverage beverage)
     :    base("Soy")
 {
     m_beverage = beverage;
 }
Пример #19
0
 public Mocha(Beverage beverage)
 {
     this.beverage = beverage;
 }
Пример #20
0
 public Mocha(Beverage b)
 {
     this.beverage = b;
 }
Пример #21
0
 public Mocah(Beverage beverage)
 {
     this.beverage = beverage;
 }