Question: I'm not sure what happened with the return from the code, whether the problem is in the overlaps method, or the encompass method. or if

I'm not sure what happened with the return from the code, whether the problem is in the overlaps method, or the encompass method. or if it's within the if statements that the errors are within.

I'm not sure what happened with the return from the code, whether

the problem is in the overlaps method, or the encompass method. or

addProperty public int addProperty (String name, String city,double rent,String owner) Creates a property object and adds it to the "properties" array, in a default plot. Parameters name - property name city - location of the property rent monthly rent owner owner of the property Returns: Returns either-1 if the array is full,-2 if property is null, -3 if the plot is not contained by the MgmtCo plot, -4 of the plot overlaps any other property, or the index in the array where the property was added successfully

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!