a constructor is a special method. It is used to give objects characteristics ASAP.
examplE
Theory
SYNTAX: modifier + className + () + { + }
![constructor syntax java](http://www.learnjavacoding.com/wp-content/uploads/2019/01/1-32.jpg)
1. default modifier 2. C is the name of the class
TWO TYPES:
constructor is a special method, therefore you can choose between non-parametrised and parametrised constructors as you did with methods.
- Constructor with parameter
- Constructor without parameter
FACTS
- constructor never returns any value
- constructor has the same name as the class
- you can have multiple constructors in one class