Inheritance without word "extends" in Java
3 answers
Yes. Each class extends Object
whether you add extends Object
to the declaration or not.
There are also anonymous classes like
Foo foo = new Foo(){
// some method implemented in here.
};
which can extend the class without extends
.
+8
source to share