Exemplo n.º 1
0
 public Drink(string _name = "Water", TypeOfDrink _type = 0, string _vendor = "Noname", int _kkal = 0, int _price = 0)
 {
     name   = _name;
     type   = _type;
     vendor = _vendor;
     kkal   = _kkal;
     price  = _price;
 }
Exemplo n.º 2
0
 public Drink(string productid, string productname, double productselllingprice, double producttax, int productquantity, DateTime productpurchasedate, TypeOfDrink typeofdrink) : base(productid, productname, productselllingprice, producttax, productquantity, productpurchasedate)
 {
     TypeOfDrinks = typeofdrink;
 }
Exemplo n.º 3
0
 public Drink()
 {
     this.DrinkType = (TypeOfDrink)values.GetValue(new Random(Guid.NewGuid().GetHashCode()).Next(values.Length));
 }
Exemplo n.º 4
0
 public Drink(TypeOfDrink typeOfDrink)
 {
     this.DrinkType = typeOfDrink;
 }
Exemplo n.º 5
0
 public Drink ProduceDrink(TypeOfDrink typeOfDrink)
 {
     return(new Drink(typeOfDrink));
 }