Computer Applications
Related Questions
Which keyword makes class members accessible outside the class in which they are declared?
- Private
- Protected
- Public
- Hidden
Find the access specifier which prohibits a class member from being used outside a class:
- Private
- Public
- Protected
- None
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