Back to notes -- Keyboard shortcut: 'u'        next -- Keyboard shortcut: 'n'  Slide program -- Keyboard shortcut: 't'    Class Point with operators as members.Lecture 3 - slide 36 : 36
Program 1
// Operator overloading - member functions.

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

  Point operator+(const Point&);
  Point operator++(int);   // int means Postfix ++
  bool  operator==(const Point&);
  
};

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