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

Method overloading

It’s having different methods with the same name but with different inputs parameters. And when you call them it will run the method that matches with the input parameters given.

Create a website or blog at WordPress.com

Up ↑