PLEASE HELP!!!
Ok, I've been racking my brain for the past two or three days now on this question, and before you click the back button, I might add I'm not looking for the answer, I'm looking for clearification of the question... here's the question:
"In a paragraph or two, discuss the tradeoffs between implementing the above classes using protected data (which allows derived classes to access them directly) versus creating member functions in the base class (but maintaining data members as private)."
Looking at this, I keep thinking with any class you implement using protected data, and when you create a base class (or any other class for that matter, you also create member functions within them. So I can't really make sense of what it's asking... Then it says below the question...
"Hint: Perhaps you gain efficiency by one method, but lose information hiding."
????
Any help is greatly appreciated - as it helps to stop the pain,
Thanks,
Nate