Differentiate between protected and private members of a class in C++
Answers
Answered by
3
Explanation:
protected - accessible in the class that defines them and in other classes which inherit from that class. Things that are private are only visible within the class itself. Things that are protected are visible in the class itself and in subclasses. ... Protected = Same as private but derived classes can also access.
Similar questions