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; }
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; }
public Drink() { this.DrinkType = (TypeOfDrink)values.GetValue(new Random(Guid.NewGuid().GetHashCode()).Next(values.Length)); }
public Drink(TypeOfDrink typeOfDrink) { this.DrinkType = typeOfDrink; }
public Drink ProduceDrink(TypeOfDrink typeOfDrink) { return(new Drink(typeOfDrink)); }