Advertisements
Advertisements
Question
Which of the following keywords are used to control access to a class member?
Options
Default
Abstraction
Protected
Interface
MCQ
Solution
Protected
Explanation:
Protected is an access specifier that controls a class member's visibility. It enables members to be accessed within the class, inherited (sub) classes, and even within the same package (in languages like Java).
shaalaa.com
Is there an error in this question or solution?