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