Sunday, December 1, 2013

Danger's associated with a protected data member in C++

We usually specify protected to data members to use them in derived class in Inheritance, but there is a problem with protected data member's that they can be used by any other class just by inheriting the class which contains that data member.
Lets watch a video to understand the problem with protected and how to fix it.


                                                                     

No comments:

Post a Comment