The question looked similar to this Writing Own .contains Method For Rectangles - Java | Dream.In.Code
Below is my answer, not sure is it correct
public class Rectangle {
private Point...
Type: Posts; User: John Joe
The question looked similar to this Writing Own .contains Method For Rectangles - Java | Dream.In.Code
Below is my answer, not sure is it correct
public class Rectangle {
private Point...
what is the usage of upperLeft ?
Where you get this from ?
What is the usage for xheight and ywidth? Do we need a formula in order to know whether it is inside the rectangle ?
The question is unclear.
You're not declare p , how can you use it in these two lines ?
r.contains(p);
p(xheight, ywidth);