The C++ Program Structure
// the declaration of class Location
protected: // allows derived class to access private data
public: // these functions can be accessed from outside
Location(int InitX, int InitY); // The constructor function
int GetX(); // returns the value of X
int GetY(); // returns the value of Y