CONSTRUCTOR
DEFINITION : Constructor in java is a special type of method that is used to initialize the object. It has same name as that of Class.
PROPERTIES OF CONSTRUCTOR :
- Called only once.
- No return type.
- Same name as that of Class.
This Keyword
this is a keyword in Java. It can be used inside the Method or constructor of Class. It(this) works as a reference to the current Object whose Method or constructor is being invoked.
