Exemplo n.º 1
0
        static void Main(string[] args)
        {
            BlackCoffee black = new BlackCoffee();
            Cortado     corta = new Cortado();
            Latte       latte = new Latte();

            Console.WriteLine($"The price is {black.Price()}kr and the strength is {black}.");
            Console.WriteLine($"The price is {corta.Price()}kr and the strength is {corta} with {corta.mlMilk()} ml milk.");
            Console.WriteLine($"The price is {latte.Price()}kr and the strength is {latte} with {latte.mlMilk()} ml milk.");
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            BlackCoffee black = new BlackCoffee();
            Cortado     cort  = new Cortado();
            Latte       latte = new Latte();

            Console.WriteLine($"The price of the coffe: {black.Price()} kr. {black}");
            Console.WriteLine($"The price of the coffe: {cort.Price()} kr. {cort} It has {cort.mlMilk()}ml of milk");
            Console.WriteLine($"The price of the coffe: {latte.Price()} kr. {latte} It has {latte.mlMilk()}ml of milk");
        }