static void Main(string[] args) { Device mobile = new MobilePhone(); Device laptop = new Laptop(); mobile.SendEmail("*****@*****.**", "*****@*****.**", "Hello", "How are you?"); laptop.SendEmail("*****@*****.**", "*****@*****.**", "Good", "Good. Thank you!"); Console.ReadLine(); }
static void Main(string[] args) { Device mobile = new MobilePhone(); Device laptop = new Laptop(); mobile.SendEmail("*****@*****.**", "*****@*****.**", "Hello", "How are you?"); laptop.SendEmail("*****@*****.**", "*****@*****.**", "Good", "Good. Thank you!"); Console.ReadLine(); }