static void Main() { BankAccount3 B1 = new BankAccount3(); B1.Deposite(1200); B1.PrintCustomerData(); Console.WriteLine(B1.Joint.Name); }
public bool Transfer(BankAccount3 A, double money) { bool k = this.Withdraw(money); if (k) { A.Deposite(money); Console.WriteLine("Transfer Succeeded"); return(k); } Console.WriteLine("Transfer Failed"); return(k); }