// Fylder tanken op med den væske den har fået i sin parameter public string Fill(Liquid liquid) { this.liquid = liquid; amount = 1000; return("Liqiud tank is filled with " + liquid.GetType().Name.ToLower()); }
public Coffee MakeBlackCoffee() { // Use them to make coffee Console.WriteLine("Making coffee with {0} and {1}.", Liquid.GetType().Name, PowderedCoffee.GetType().Name); return(new BlackCoffee()); }
public string Purchase() { return($"{Liquid.GetType().Name} - " + $"{Company.GetType().Name}"); }