The C++ Program Structure
// the declaration of class POINT
class Point : public Location { // derived from class Location
// public derivation means that X and Y are protected within Point
Boolean Visible; // classes derived from Point will need access
Point(int InitX, int InitY); // constructor
void Show(); // make the object visible
void Hide(); // make the object invisible
Boolean IsVisible(); // returns the value of the variable Visible
void MoveTo(int NewX, int NewY); // Change the Location data