#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 Example &operator=(const Example &other); string toString() const; private: char *strPtr; static unsigned int globalId; unsigned int id; }; #endif // __EXAMPLE_H