// point2.cpp // Member function definitions for class Point #include using std::cout; using std::endl; #include "point2.h" // Constructor for class Point Point::Point( int a, int b ) { x = a; y = b; cout << "Point constructor: " << '[' << x << ", " << y << ']' << endl; } // Destructor for class Point Point::~Point() { cout << "Point destructor: " << '[' << x << ", " << y << ']' << endl; }