Advertisement
Guest User

Untitled

a guest
Apr 26th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. class CurrencyAcc: public Account{
  2.  
  3. public:
  4.  
  5. CurrencyAcc (long int ac1, long int ac2, double bal1, double bal2) {
  6.  
  7. accDollar=ac1;
  8. balDollar=bal1;
  9. accEuro=ac2;
  10. balEuro=bal2;
  11. }};
  12.  
  13. class Account{
  14.  
  15. friend class CurrencyAcc;
  16.  
  17. public:
  18. Account (string nm, long int acc, double bal){
  19. name=nm;
  20. accountNumber=acc;
  21. balance=bal;
  22. }};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement