Subclass constructor

The subclass construct method first must build the super-class (or if there’s more than one,  execute them from the highest level, one by one) and finally build himself.

public Class(){ super(); this(); }
Advertisements

What is a class constructor?

Is the method executed every time that a new object is created. It’s defined in that way:

public className () { }

Create a website or blog at WordPress.com

Up ↑