Back to slide -- Keyboard shortcut: 'u'  previous -- Keyboard shortcut: 'p'  next -- Keyboard shortcut: 'n'          containers/priority-queue/point.h - Class point with an overloaded operator<.Lecture 6 - slide 11 : 40
Program 2

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&);