| The Point class definition - not a template in this version. | Lecture 5 - slide 9 : 39 Program 5 |
// Another variant of the example - now parameterizing non-member Point functions
#ifndef POINT_H
#define POINT_H
#include <iostream>
class Point {
private:
double x, y;
public:
Point(double, double);
Point();
double getx () const;
double gety () const;
};
std::ostream& operator<<(std::ostream&, const Point&);
#endif // POINT_H