Computer Applications
Which of the following keywords are used to control access to a class member?
- Default
- Abstraction
- Protected
- Interface
Java Classes
38 Likes
Answer
Protected
Reason — The access specifier 'protected' is used to control access to a class member.
Answered By
8 Likes
Related Questions
A class object is also known as:
- Identifier
- Instance variable
- Specifier
- Modifier
Which of the following statements is the most appropriate for the private members?
- They are visible out of the class in which they are defined.
- They can be used in the sub-classes.
- They are only visible in the class in which they are declared.
- None of the above.
Which of the members can be accessed globally?
- Private
- Public
- Protected
- All of the above
The maximum number of objects of a class can be created as:
- 1
- 2
- On the user's choice
- Number of variables