static void Main(string[] args) { MobileAccount mobile1 = new MobileAccount("0993422226"); MobileAccount mobile2 = new MobileAccount("0502121212"); mobile2.Call("099"); mobile2.SendMail("0993422226"); }
public void Call(MobileAccount account) { Call(account.PhoneNumber); }
public void SendMail(MobileAccount account) { SendMail(account.PhoneNumber); }