public override string Show()//new method2-Show-childclass1 { return(String.Format("[SavingAccount] AccountNumber:{0}; AccountHolderName: {1}, Balance: {2}", AccountNumber, AccountHolderName.Show(), Balance)); }
public override string Show()//new method1-childclass2 { return(String.Format("[OverDraftAccount] AccountNumber:{0}; AccountHolderName: {1}, Balance: {2}", AccountNumber, AccountHolderName.Show(), Balance)); }