In Java, all classes are extending Object class implicitly , on top of that at max only one class can be inherited.
So is it like , implicitly Java is allowing us to extend 2 classes or it is some other logic Java is following?
In Java, all classes are extending Object class implicitly , on top of that
Share
Your class that extends that other class, but it extends Object, too, so you’re still in one line of inheritance, not two.