Computer Applications
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?