CP101-2C++ Code for class