You need to look at the code. Where are the Rectangle class objects created? Hint: objects are created with the new statement.
See the tutorial on constructors:
Providing Constructors for Your...
Type: Posts; User: Norm
You need to look at the code. Where are the Rectangle class objects created? Hint: objects are created with the new statement.
See the tutorial on constructors:
Providing Constructors for Your...
Where does the test class pass values to the Rectangle class? What does the Rectangle class do with the values it receives?
The findArea() I was talking about is a method. Notice the () I added at the end of the name.
Use your editor's Find or Search function to find where the findArea() method is defined and where it...
What values does the findArea() method compute and return? Look at that method to see what it does.
Is the program executing now?
Copy and paste here the full contents of the program's output.
If the output is wrong, please explain what it should be and provide some example of correct output.
What is the commandline you are using to execute the program?
The formatting of the Test class does not following coding standards. The nested statements should be indented 3-4 spaces. See the...