Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CurrencyAcc: public Account{
- public:
- CurrencyAcc (long int ac1, long int ac2, double bal1, double bal2) {
- accDollar=ac1;
- balDollar=bal1;
- accEuro=ac2;
- balEuro=bal2;
- }};
- class Account{
- friend class CurrencyAcc;
- public:
- Account (string nm, long int acc, double bal){
- name=nm;
- accountNumber=acc;
- balance=bal;
- }};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement