|
-
Feb 5th, 2005, 06:05 PM
#1
Thread Starter
Good Ol' Platypus
Public inheritance... Private members?
Assuming I have two classes, the base containing a private member variable and the other class being derived from base, what is stopping me from accessing that private variable as a member inside of the derived class?
g++ gives me:
'int base::variable' is private
within this context
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|