Back to notes -- Keyboard shortcut: 'u'        next -- Keyboard shortcut: 'n'  Slide program -- Keyboard shortcut: 't'    Class point with an overloaded operator<.Lecture 5 - slide 25 : 39
Program 1
class Point {
private: 
  double x, y;

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

  friend bool operator< (const Point&, const Point&);
  
};

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