Program #3
| 75 | |
| 76 | // Program #3 |
| 77 | class Account |
| 78 | { |
| 79 | public: |
| 80 | Account() |
| 81 | { |
| 82 | cout << "Object is being Created" << endl; |
| 83 | name = "Rustam"; |
| 84 | number = "123456789"; |
| 85 | balance = 12345; |
| 86 | } |
| 87 | ~Account() |
| 88 | { |
| 89 | cout << "Object is being Deleted" << endl; |
| 90 | } |
| 91 | void Display() |
| 92 | { |
| 93 | cout << "Name: " << name << endl |
| 94 | << "Number: " << number << endl |
| 95 | << "Balance: " << balance << endl; |
| 96 | } |
| 97 | |
| 98 | private: |
| 99 | string name; |
| 100 | string number; |
| 101 | float balance; |
| 102 | }; |
| 103 | |
| 104 | // Program #4 |
| 105 | class Rectangle |
nothing calls this directly
no outgoing calls
no test coverage detected