Back to notes -- Keyboard shortcut: 'u'  previous -- Keyboard shortcut: 'p'  next -- Keyboard shortcut: 'n'  Slide program -- Keyboard shortcut: 't'    Class Point - with a pointer representation - same as before.Lecture 3 - slide 10 : 36
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&);