Use an external member function to print out the member data of the Person class.
To define a member function outside the
, the scope resolution operator is used. To illustrate this, let us revisit the
from the previous module. We can change the declaration of
, inside the declaration of
, to just a function prototype and define
When we define it, we write the name out fully using the scope resolution operator.
In this case, the function is not