Loading practice questions
Which function among the following can’t be accessed outside the class in java in same package?
Correct Answer: A — protected show()
Explanation:
The protected members are available within the class. And are also available in derived classes. But these members are treated as private members for outside the class and inheritance structure. Hence can’t be accessed.