static void Main(string[] args) { Laptop hp = new Laptop("Laptop1", "HP", 2, false); Smartphone apple = new Smartphone("Smartphone1", true, 15, true); hp.CheckBatteryLevel(); apple.CheckBatteryLevel(); apple.AnswerPhone(true); hp.DisplayInfo(hp); apple.DisplayInfo(apple); }
static void Main(string[] args) { //Console.WriteLine("Hello World!"); SmartPhone newSmartPhone = new SmartPhone("iOS", "AT&T", .33, 2.98, 5.94, "Apple"); Laptop newLaptop = new Laptop(3, true, .63, 12.11, 8.81, "Huawei"); newSmartPhone.PrintInfo(); newLaptop.PrintInfo(); //Console.WriteLine(newSmartPhone.Height); //Console.WriteLine(newSmartPhone.BatteryLevel); newSmartPhone.CheckBatteryLevel(0.3); newLaptop.CheckBatteryLevel(0.1); }