java super constructor

Java Constructors: Using super()

The magic of super() We have seen earlier, the usage of this() statement where it is used to call in between the constructors belonging to the same class. Here no inheritance is involved. Now in this posting, let us learn how to call a super class constructor from subclass constructor.…

Java Constructor

Java Constructor, Method and Variable comprises of basic constructs in coding. The importance of Java Constructor is it gives properties to an object at the time of creation itself; else requires many method calls. Before going into coding, let us know what a Java constructor is. A Java constructor looks…