Terminology
¥
The methods that return the fields of a class
are called
getters
.
¥
The special method with the same name as
the class is called the
constructor
.
The
constructor is executed when a new instance
(object) of the class is created using
new
.