Computer Applications
Which keyword makes class members accessible outside the class in which they are declared?
- Private
- Protected
- Public
- Hidden
Java Classes
74 Likes
Answer
Public
Reason — Public keyword makes class members accessible outside the class in which they are declared.
Answered By
27 Likes
Related Questions
Find the access specifier which prohibits a class member from being used outside a class:
- Private
- Public
- Protected
- None
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 following keywords are used to control access to a class member?
- Default
- Abstraction
- Protected
- Interface