![]() ![]() ![]() | Class Point with overloadings of the application operator. | Lecture 5 - slide 35 : 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); double operator()(int) const; double operator()(Point) const; }; std::ostream& operator<<(std::ostream&, const Point&);