In java please.
//Given the following class declaration, write a public methodnamed perimeter that returns the perimeter (the total length of allfour sides) of the Rectangle.
//This method should take no arguments and should return an int. Donot add or change any other code.
class Rectangle {
private int height;
private int width;
public int area() {
return this.height * this.width;
}
}
Expert Answer
An answer will be send to you shortly. . . . .