destructors-2a/point.h - Class Point - with a pointer representation - same as before. | Lecture 4 - slide 12 : 40 Program 4 |
// Redoing the example - same header file as the previous version. class Point { private: double *point_representation; public: Point(); Point(double, double); ~Point(); // Destructor double getx () const; double gety () const; }; std::ostream& operator<<(std::ostream&, const Point&);