Hi all,
I need help understanding a C++ problem. This is an assignment question.
Create a base class ‘Account’ and two derived classes ‘Savings’ and‘Checking’.
The ‘Savings’ and ‘Checkings’ information should be connected to each other using variable CREDITRATING.
Transactions in any of those derived classes should be able to manipulate CREDITRATING.
How can i do that? I have few ideas (i may be wrong)
- declare CREDITRATING in base class as protected?
- using friend function
- by declaring CREDITRATING as a static member
But from a security aspect, which is the best choice?
Please help. Thanks