Ejemplo 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));
 }
Ejemplo n.º 2
0
 public override string Show()//new method1-childclass2
 {
     return(String.Format("[OverDraftAccount] AccountNumber:{0}; AccountHolderName: {1}, Balance: {2}", AccountNumber, AccountHolderName.Show(), Balance));
 }