Inheritance in Java. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Inheritance in Java.

As we know, each class or base class is descendent or inherited from class Object. Am I right?

17th May 2023, 4:36 AM
Oliver Pasaribu
3 Answers
+ 2
yes you are correct. Every class is implicitly or explicitly derived from the Object class, which is the root of the class hierarchy.
17th May 2023, 4:42 AM
I am offline
I am offline - avatar
+ 2
True
17th May 2023, 5:59 AM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar
+ 1
Inheritance is like making a subclass bigger.
1st Sep 2023, 10:58 PM
D_Stark
D_Stark - avatar