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();
        }
Example #2
0
        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();
        }