#include
#include
using namespace std; class DrawImp { public: virtual ~DrawImp(){cout<<"DrawImp 基类析构"<
DrawLine();} void DrawRect(){imp->DrawRect();} }; class DrawIcon:public Draw { public: DrawIcon(DrawImp* i):Draw(i){} virtual ~DrawIcon(){cout<<"DrawIcon 析构"<
DrawOneIcon(); delete pIcon; delete pImp; system("PAUSE"); return EXIT_SUCCESS; }
桥接模式
最新推荐文章于 2015-01-30 17:59:37 发布