static void Main(string[] args) { DrinksMachine myMachine = new DrinksMachine("Kitchen", "Brand1", "DM1000"); Console.WriteLine(myMachine.Location + " " + myMachine.Make + " " + myMachine.Model); myMachine.MakeCappuccino(); myMachine.MakeEspresso(); }
static void Main(string[] args) { DrinksMachine myMachine = new DrinksMachine(); myMachine.location = "Kitchen"; myMachine.model = "DM1000"; Console.WriteLine(myMachine.location + " " + myMachine.model); myMachine.MakeCappuccino(); myMachine.MakeEspresso(); }
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(); }