Question about protected members

+1 ilir beqiri · December 21, 2015
Why do we use them ? What is their real function  ?? 

Post a Reply

Replies

Oldest  Newest  Rating
0 Gitesh Khanna · December 21, 2015
If you have gone through the concept of Inheritance, you will be introduced to the importance of Protected members.
Protected members work exactly like private members but with the ability to get inherited to some other class(Derived Class).
A private member is never inherited to some other class.
  • 1

C++

106,931 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator