Object Oriented Programming2080.15 marksPublic, private, and protected inheritance
What is the role of protected access specifiers in inheritance? Explain with example.
What is the role of protected access specifiers in inheritance? Explain with example. [5]
The protected access specifier is an access control modifier that makes class members accessible: - Within the same class - Within derived (child) classes - NOT accessible from outside the class hierarchy (unlike public) It sits between private and public in terms of accessibility. Access Specifi...