| pointer-to-member/point.h - Class variant of class Point with several different move functions. | Lecture 5 - slide 14 : 40 Program 1 |
// Class Point with three member functions of the same signature.
class Point {
private:
double x, y;
public:
Point(double, double);
Point();
double getx () const;
double gety () const;
void move_relative(double, double); // Three move
void move_absolute(double, double); // functions with the
void move_funny(double, double); // same signature
double distance_to(Point);
};
std::ostream& operator<<(std::ostream&, const Point&);