static void Main(string[] args) { Washer washer = new Washer(); washer.Brand = "Miele"; washer.Model = "WMC120FIN"; washer.EnergyClass = "A"; washer.LaundryAmount = 0; washer.SpinSpeed = 1900; washer.AddLaundry(5); Console.WriteLine(washer.ToString()); washer.RemoveLaundry(); Console.WriteLine(washer.ToString()); Washer wassheri = new Washer("Upo", "Pesukarhu"); wassheri.EnergyClass = "B"; wassheri.SpinSpeed = 2000; Console.WriteLine(wassheri.ToString()); Console.WriteLine("Press enter key to continue..."); Console.ReadLine(); }
static void Main(string[] args) { Washer washer = new Washer(); washer.PrintData(); washer.SetTemperature(60); washer.SetDuration(40); washer.SetProgram("Hellävarainen"); washer.PrintData(); Washer washer2 = new Washer(40, 35); washer2.PrintData(); washer2.Off(); washer2.SetProgram("Joku pesuohjelma"); washer2.PrintData(); }
static void Main(string[] args) { // create a washer object Washer washer = new Washer(); washer.Brand = "Bosch"; washer.Model = "ABC123"; washer.SpinSpeed = 1400; washer.LaundryAmount = 7; washer.IsOn = true; washer.PrintData(); Console.ReadLine(); }