Home »
MCQs »
OOPs MCQs
Which access specifier makes the class member accessible outside the class but can be accessed by any subclass of that class?
51. Which access specifier makes the class member accessible outside the class but can be accessed by any subclass of that class?
- Private
- Public
- Protected
Answer: C) Protected
Explanation:
Protected access specifier makes the class member accessible outside the class but can be accessed by any subclass of that class.