MAIN.CXX
We can now create a second sphere and copy the contents of the first.
Although a reference to the sphere is being passed, we make the call as if passing by value.
The call to getXPosition() will be replaced by xPosition in the compiled code.
Yet, xPosition is still a protected variable and is only available through the accessor function.
#include <iostream.h>
#include "sphere.h"
int main (void)
	{	
	sphere mySphere;
	mySphere.setRadius(10.0);
	cout << "mySphere has radius: " << mySphere.getRadius() << endl;
	sphere myOtherSphere;
	myOtherSphere.copy(mySphere);
	myOtherSphere.setPosition(3.0,4.0,10.0);
	cout << "myOtherSphere has radius: " << myOtherSphere.getRadius() << endl;
	cout << "myOtherSphere has X position: " << myOtherSphere.getXPosition() << endl;
	};