#ifndef __EXAMPLE_H #define __EXAMPLE_H #include using namespace std; class Example { public: // this is a "copy constructor" Example(const Example &other); Example(const char *strVal); ~Example(); // this is the destructor string toString(); private: char *strPtr; static unsigned int globalId; unsigned int id; }; #endif // __EXAMPLE_H