In Object Oriented Programming calling constructor is the first step of initialization an object. There are 2 types of constructors – default and parameterized.
Default – Constructor that take zero argument is called Default Constructor. Every class needs a default constructor. A default (no-argument) constructor is automatically created only when you do not define one yourself.
Parameterized – Constructor that take arguments are called parameterized Constructors.
They can be added as per our requirement.
When you declare a parameterized constructor you must add default constructor as java stops creating one.