1.Private members of superclass is not directly accessible to subclass. As in this example, Animal variable nooflegs isn't accessible to Cat class but it can indirectly accessible via getter and setter methods.
2.Superclass members with the default access is accessible to subclass only if they be in the same package.
3.Superclass constructors is not inherited by subclass.
4.If superclass doesn ' t has default constructor, then subclass also needs to has an explicit constructor defined. Else It'll throw compile time exception.
5.Java doesn ' t support multiple inheritance, a subclass can extends only one class. So here Animal are implicitly extending Object class and Cat is extending Animal class but due to Java inheritance Transiti ve nature, Cat class also extends Object class.
Excerpt from: Http://www.journaldev.com/644/inheritance-in-java-example
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Important Points for inheritance in Java