Still need some help?
Where did you bind rect2 to position?
And you need some Rectangle attributes to be of Point type (pointPosition, position and rect2)
I don’t know what that mean by bind? do I need to create
some parameters and point type like create variable int Point;
No, you just need to set the attributes of your Rectangle class to be Point type (eg: “Point pointPosition” instead of “int pointPosition”)
Yes, do the same for the 2 more attributes I mentioned earlier
Are you trying to learn, or are you just curious to see the output?
Try to sort it, or you’ll never learn.
Am I supposed to create a new rectangle object or point object ? I think I’m supposed to create new rectangle.
I tried “position.rect2=position” and “position.rect2=rect2” and “Rectangle pointPosition = new Rectangle();
pointPosition.position = p;”
Also tried “Rectangle position = new Rectangle();
position.pointPosition=p;” also tried
“Rectangle Point=new Rectangle();
Point.position=p;”
You shouldn’t try “brute forcing” the code until it runs, examine your code and make it following the lesson requirements (the blue bar at the window’s top)
Thanks for seeing me through it I restarted the lesson and was able to work my way through it!!
Glad to hear this.
Have fun and learn =)