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. Example on super() class Animal …

Java Constructors: Using super() Read More »