Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            MobileAccount mobile1 = new MobileAccount("0993422226");
            MobileAccount mobile2 = new MobileAccount("0502121212");

            // mobile2.Call("099");
            mobile2.SendMail("0993422226");
            Console.WriteLine(new string('-', 30));
            mobile1.AddAccount(mobile2.PhoneNumber, new Account {
                Name = "Dima"
            });

            mobile2.SendMail("0993422226");
        }
 public void Call(MobileAccount account)
 {
     Call(account.PhoneNumber);
 }
 public void SendMail(MobileAccount account)
 {
     SendMail(account.PhoneNumber);
 }