Question: In Drjava Description Download the Square.java file and load it into DrJava. . Add the following methods to the file: border: this method does not

Description Download the Square.java file and load it into DrJava. . Add the following methods to the file: border: this method does not receive any parameters. It returns an integer value. The value returned is the perimeter of the square. area : this method does not receive any parameters. It returns an integer value. The value returned is the area of the square. enlarge : this method receives an integer value. It does not return any value. It increases the size of each side of the square by the value passed in the parameter. public class Square { int side; public Square() { side = 2; } //Place new methods below this line }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
