Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            DrinksMachine myMachine = new DrinksMachine("Kitchen", "Brand", "DM1000");

            myMachine.Location = "Kitchen";
            myMachine.Model    = "DM1000";

            Console.WriteLine(myMachine.Location);
            Console.WriteLine(myMachine.Make);
            Console.WriteLine(myMachine.Model);
            myMachine.MakeCappuccino();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            DrinksMachine myMachine = new DrinksMachine("Kuchyň", "ETA", "DM1000");

            // myMachine.Location = "Kitchen";
            // myMachine.Model = "DM1000";

            Console.WriteLine(myMachine.Location);
            Console.WriteLine(myMachine.Make);
            Console.WriteLine(myMachine.Model);
            myMachine.MakeCapuccino();

            Console.WriteLine(Math.Pow(2, 8));
        }