Quiz: Find the Coordinates of the Endpoint
How do you find the coordinates for the other end of the line connecting your person to its new friend?
- Use the instance variables x and y?
- Use the friend parameter?
- Use
xCoordandyCoord? - Get the x and y values from the friend parameter?
- Add parameters to the
addFriendmethods to take in the 2nd endpoint of the line