Back to slide -- Keyboard shortcut: 'u'        next -- Keyboard shortcut: 'n'          friends/point-with-friends-f15/point.h - Class Point - header file.Lecture 4 - slide 35 : 40
Program 1

// A variant of Point with two Move friends: Move1 and Move2.
// These are defined near main in prog.cc

class Point {
private: 
  double x, y;

public:
  friend void Move_relatively_1(Point&, double, double);         // We show two slightly different
  friend Point Move_relatively_2(const Point&, double, double);  // version of the Move function.

  Point(double, double);
  Point();
  double getx () const;
  double gety () const;
  void move_relatively(double, double);
  double distance_to(Point);
};

std::ostream& operator<<(std::ostream&, const Point&);