Back to notes -- Keyboard shortcut: 'u'        next -- Keyboard shortcut: 'n'  Slide program -- Keyboard shortcut: 't'    Class Point - header file.Lecture 3 - slide 31 : 36
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 Move1(Point&, double, double);         // We show two slightly different
  friend Point Move2(const Point&, double, double);  // version of the Move function.

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

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