Back to notes -- Keyboard shortcut: 'u'        next -- Keyboard shortcut: 'n'  Slide program -- Keyboard shortcut: 't'    Class variant of class Point with several different move functions.Lecture 4 - slide 12 : 24
Program 1
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&);