Originally posted by subhakar edeti:
every body aware object class is super class of every class in java.
means every class extends the Object class.
class A extends B{} already extends Object class in this a can have
properties of both object and b class how this is posible even though java
doesn't supprot multiple inheritance.
Class A inherits from the Object class as a result of extending class B because class B is an Object. A does not extend both ClassB and Object. So you have a linear hierarchy like so
Object-> Class B --> Class A.