We usually specify
Lets watch a video to understand the problem with protected and how to fix it.
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