.
, , . Point new Point - "" ( , ). , ... , (, ), ( - ) - initialization(Point) vs default initialization followed by assignment.
, , , . , . , , : ( ) . : , , ( ) .
, , , int x int y?
Point.
insted x y (x, y)? ?
( ) , , . , , . :
HeapPoint::HeapPoint(int x, int y): thePoint(new Point(x,y)) { }
, :
const Point* const thePoint;
const , (, Point.x Point.y). , . OP, .