Class functions

Hello everyone,

I'm new to classes... I created the class point that has abs and ord as members.

I have a question:

How can I create a function midpoint that uses the midpoint formula and returns a value of type point? (I need to include this function as a class member, eg. point p = midpoint(a,b)...)


Thanks!!
Topic archived. No new replies allowed.