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

22 lines
311 B
C
Raw Normal View History

2022-02-26 08:08:24 +00:00
/* 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;
};