DesignPattern/31.PImplPattern/02.Code/demo.h

22 lines
311 B
C++

/* header file */
// forward declaration
class PAimpl;
class A
{
public:
A()
{
// initial work
}
~A() {
// free resource
}
public:
void func1(int a, char* b);
bool isEnabled();
// other public interface which will exposed outside
private:
PAimpl* pimpl;
};