Share
Explore BrainMass

understanding Classes in C++

I am having a dificult time understanding Classes in C++ and how to implement member functions. Given the attached code I need to:

1: Add the code to implement all of the member functions.
2: Test them from main as coded.
3: Show the order the constructors are called.
4: Show the order the destructors are called.

Attachments

Solution Preview

once you have define your classes
<br>make another cpp file say StringImpl.cpp
<br>
<br>
<br>don't forget to include the class with the class declaration
<br>
<br>#include "TheFileWithTheClassDeclaration.cpp"
<br>
<br>//lets say the class is called ...

Solution Summary

This job aids in understanding Classes in C++.

$2.19