Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
protected members
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="leonardo77, post: 2514428"] Alf P. Steinbach: To my perception Cy Edmunds might be correct at this point. Protected data is frowned upon for the same reason as public data. (It's even worse,there are in fact some possible uses of public data, aka. bag of bits or std::pair). Derived classes are as coupled to the protected data/interface of their base classes as the rest of the world to the public data/interface. as the rest of the world. Still,if the application is reasonably small or you can control the changes,you can just stick to protected data to avoid complications. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
protected members
Top