#include "Point.h" int Point::numPoints = 0; Point::Point (int newX, int newY) : x_(newX), y_(newY) { numPoints++; } Point::Point (const Point& newPoint) : x_(newPoint.x_), y_(newPoint.y_) { numPoints++; } Point::~Point() { numPoints--; } int Point::pointCount() { return numPoints; } ostream& operator<< (ostream& ostr, const Point& pt) { ostr << '(' << pt.x_ << ", " << pt.y_ << ')'; return ostr; }