super Archive

Constructor Chaining using this and super keyword

By default super class constructors are not inherited in subclass. Invoke super class constructor implicittly or explicitly by using super keyword. The first line of sub class constructor must be super. If it is not explicitly written, compoler will automatically put super keyword as a first statement in subclass to invoke super class no-argument constructor super keyword can be

Inheritance in Java

Inheritance in java is very simple but userful and power ful. It allows us to extend existing class and reuse the existing code. The idea of extending class is very simple. If you want to write a class and a similar class already exist with less functionality or properties. You can extend the existing class