static void Main(string[] args) { var a1 = new Account("Abdullah", "1234", 5000); var a2 = new Account("Al-Amin", "4321", 4000); a1.Withdraw(500); a1.Deposit(1000); a1.Transfer(1000, a2); a1.showAllTransactions(); a2.showAllTransactions(); }
static void Main(string[] args) { Account a1 = new Account("Nahida Asha", "134", 100000); Account a2 = new Account("Kiron", "135", 100000); a1.Withdraw(10000); a1.Deposit(20000); a1.Transfer(a2, 40000); a2.Transfer(a1, 25000); Console.WriteLine("\n---------------\n"); a1.ShowInfo(); Console.WriteLine("----------------\n"); a2.ShowInfo(); Console.ReadLine(); }
static void Main(string[] args) { Account a1 = new Account("Talha Jubayer", "145", 50000); Account a2 = new Account("Jubayer Talha", "146", 50000); a1.Withdraw(20000); a1.Deposit(10000); a1.Transfer(a2, 30000); a2.Transfer(a1, 15000); Console.WriteLine("\n******************************\n"); a1.ShowInfo(); Console.WriteLine("******************************\n"); a2.ShowInfo(); Console.Write("End"); Console.ReadLine(); }