Computer Applications
Name the access specifiers available in Java.
Encapsulation & Inheritance in Java
3 Likes
Answer
The access specifiers available in Java are:
- public
- private
- protected
Answered By
1 Like
Related Questions
When many sub classes are inherited from a single base class, it is known as …………… .
- Hierarchical inheritance
- Multiple inheritance
- Single inheritance
- Multilevel inheritance
How does a class encapsulate state and behaviour?
Explain visibility in terms of the following access modifiers:
- public
- private
- protected
- no modifier specified
Why is it a good idea to make all instance variables private?