Advertisements
Advertisements
Question
Give reason:
In what circumstances is a class derived privately?
Give Reasons
Solution
Java doesn't support protected and private inheritance. Java classes always derive publically.
shaalaa.com
Is there an error in this question or solution?
Chapter 8: Encapsulation and Inheritance - EXERCISES [Page 446]