Back to slide -- Keyboard shortcut: 'u'        next -- Keyboard shortcut: 'n'          destructors-1/point.h - Class Point - representated as a dynamically allocated array of two doubles .Lecture 4 - slide 12 : 40
Program 1

class Point {
private: 
  double *point_representation;   // A pointer to an array of two doubles

public:
  Point();                        // (0,0) 
  Point(double x, double y);      // (x,y)
  ~Point();                       // Destructor. Empty as of now.

  double getx () const;
  double gety () const;
};

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