"r2" is not "null", the values of the heights are identical.
and so are the widths.
In this case, we will have the printing "Rectangles identiques" (TN: means "identical Rectangles")
This was not the case when we compared two rectangles
through the " == " operator.
In Java, the programmer of a class is thus tasked to
define an "equals" method if we wish to be able
to compare instances according to particular criteria.
We will go back to this once we have discussed
the inheritance and particularly the predefined class "Object".
For now, just be aware that there can be two possible headers
for the "equals" method.
The one we have just seen where, in a given class called
"UneClass", we define the "equals" method passing as agument
an object of the same type as the class.
It is also possible to define the "equals" method
passing as argument an Object-type object.
We will go back to this when the time is ripe.
This concludes our first chapter on the fundamentals
of the object-oriented in Java.
In what comes next, we will open another very important
chapter : the inheritance.