For the second program
| 70 | |
| 71 | // For the second program |
| 72 | class ACCOUNT |
| 73 | { |
| 74 | private: |
| 75 | // customer name, account number and type of account. |
| 76 | string name; |
| 77 | string account_number; |
| 78 | string type_account; |
| 79 | |
| 80 | public: |
| 81 | void getdata() |
| 82 | { |
| 83 | cout << " Name: "; |
| 84 | cin >> name; |
| 85 | cout << " Account Number: "; |
| 86 | cin >> account_number; |
| 87 | cout << " Type of Account: "; |
| 88 | cin >> type_account; |
| 89 | } |
| 90 | |
| 91 | void showdata() |
| 92 | { |
| 93 | cout << " Name: " << name << endl; |
| 94 | cout << " Account Number: " << account_number << endl; |
| 95 | cout << " Type of Account: " << type_account << endl; |
| 96 | } |
| 97 | }; |
| 98 | |
| 99 | class CURR_ACCT : public ACCOUNT |
| 100 | { |
nothing calls this directly
no outgoing calls
no test coverage detected