Exemple #1
0
        static void Main(string[] args)
        {
            Juoma drink = new Juoma();

            drink.Name   = "BonAqua";
            drink.Volyme = 0.5;
            Console.WriteLine(drink.ToString());

            Alkoholi alcohol = new Alkoholi("Karhu", 0.33, "4,5%");

            Console.WriteLine(alcohol.ToString());


            Limu jaffa = new Limu();

            Console.WriteLine("Press enter key to continue...");
            Console.ReadLine();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Juoma drink = new Juoma();
            drink.Name = "BonAqua";
            drink.Volyme = 0.5;          
            Console.WriteLine(drink.ToString());

            Alkoholi alcohol = new Alkoholi("Karhu", 0.33, "4,5%");
            
            Console.WriteLine(alcohol.ToString());


            Limu jaffa = new Limu();

            Console.WriteLine("Press enter key to continue...");
            Console.ReadLine();
           

        }