public abstract class Drinks
public void Refill(int a)
public abstract int GetQuantity();
public class SodaDrinks : Drinks
public SodaDrinks(string a, double b, int c, int d)
public override int GetQuantity()
Console.WriteLine("The quantity of this soda drink is: " + this.Quantity);
Console.WriteLine("The sugar of this soda drink in grams is: " + Sugar);
public class WellnessDrinks : Drinks
private string healthfacts;
public string Healthfacts
public WellnessDrinks(string a, double b, int c, string d)
public override int GetQuantity()
Console.WriteLine("The quantity of this wellness drink is: " + this.Quantity);
public string GetHealth()
Console.WriteLine("The healthfacts of this wellness drink are: " + Healthfacts);
public static void Main(string[] args)
SodaDrinks new1 = new SodaDrinks("Sprite", 1.99, 10, 40);
Console.WriteLine("new1..." + new1.Name);
Console.WriteLine("new1..." + new1.Price);
Console.WriteLine("new1..." + new1.Quantity);
Console.WriteLine("new1..." + new1.Sugar);