Answer:
The solution code is written in Java.
Explanation:
Create a class, Rectangle (Line 1) and define two private attributes, width and length (Line 3 - 4). The reason to define the attributes as double type is because the width and length are presumed to be either an integer or a decimal value.
Create constructor which takes width and length as parameters (Line 6).
Next, the require methods, getArea(), isSquare() and overloaded equivalence() along with their expected parameters and return output, are created accordingly in Line 11 -28.