Answer:
Java.
Explanation:
public class Rectangle {
private int x;
private int y;
private int width;
private int height;
///////////////////////////////////////////////////////////
public Rectangle(int inX, inY, inWidth, inHeight) {
x = inX;
y = inY;
width = inWidth;
height = inHeight;
}
///////////////////////////////////////////////////////////
public int getX() {
return x;
}
public int getY() {
return y;
}
public int getWidth() {
return width;
}
public int getHeight() {
return height;
}
///////////////////////////////////////////////////////////
public int getArea() {
return width * height;
}
public bool isSquare() {
if (width == height) {
return true;
}
else
return false;
}
///////////////////////////////////////////////////////////
public String toString() {
return "Rectangle located at (" + x + "," + y + ")" + "with dimensions " + width + "x" + height + "and " + getArea() + "is the area.";
}
}