0

How object is the base class for all.?

If object is a base class for all but we know that multiple inheritances not possible with classes than how object is the base class for all?

29th Apr 2021, 6:18 PM
Ur-Wellwisher
Ur-Wellwisher - avatar
1 Resposta
+ 1
Object is base class to other sub classes through single inheritance. In the absence of any other explicit superclass, every class is implicitly a subclass of Object. Besides, multiple inheritance is possible through Interfaces.
30th Apr 2021, 10:51 PM
Miyar Karthik Kamath
Miyar Karthik Kamath - avatar