View Single Post
Old Feb 4th, 2007, 12:33 PM   #2
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,190
Rep Power: 5 lectricpharaoh will become famous soon enough
What's to explain? Those private members will still be there, even if they ae not directly accessible. However, this doesn't mean they are not accessible at all; try putting a pair of get/set methods in the base class, and then call them.

The point is that private data members are (generally) intended to help the class keep track of its own internal state. Deriving a new class from this class doesn't mean it no longer has this responsibility, thus, it should have all the original members.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is online now   Reply With Quote