721
edits
No edit summary |
|||
Line 14: | Line 14: | ||
The function body should look like this: | The function body should look like this: | ||
<source lang="c" line start="55" highlight="4"> | <source lang="c" line start="55" highlight="4"> | ||
float distanceToOtherPoint(Point2D otherPoint) { | |||
float distance = ... // calculate distance here | |||
return distance; | |||
} | |||
</source> | </source> | ||
Include that function in our Point2D class and make it calculate the distance! | Include that function in our Point2D class and make it calculate the distance! |