Private/public header example?
You have two header files MyClass.h and MyClass_p.h and one source file: MyClass.cpp. Lets take a look at what’s inside them: MyClass_p.h: // Header Guard Here class MyClassPrivate { public: int a; bool b; //more data members; } MyClass.h: // Header Guard Here class MyClassPrivate; class MyClass { public: MyClass(); ~MyClass(); void method1(); int method2(); … Read more