#ifndef POINT_CLASS_H #define POINT_CLASS_H #include using namespace std; // Topics: // // access control // friendship // static member variables class point2D { friend ostream & operator<< (ostream &, const point2D &); public: // default constructor (defaults to member-wise default construction // if no-other constructors declared) point2D (); // copy constructor (defaults to member-wise copy construction // if not declared) point2D (const point2D &); // assignment operator (defaults to member-wise assignment if not declared) point2D & operator= (const point2D &); // destructor (defaults to member-wise destruction if not declared) ~point2D (); private: static unsigned int count_; int x_; int y_; }; ostream & operator<< (ostream &, const point2D &); #endif /* POINT_CLASS_H */