#ifndef THIS_EXAMPLE_H #define THIS_EXAMPLE_H class CThisExample { public: CThisExample &SetX(const int NewX); CThisExample &SetY(const float NewX); CThisExample *SetC(const char NewX); private: int x; float y; char c; }; #endif CThisExample &CThisExample::SetX(const int NewX) { x = NewX; return *this; } CThisExample &CThisExample::SetY(const float NewY) { y = NewY; return *this; } CThisExample *CThisExample::SetC(const char NewC) { c = NewC; return this; }