UML/设计模式
welleo
喜欢打羽毛球、乒乓球、游泳等。
业余喜欢书法艺术。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Design Pattern - Structural Pattern - Adapter
Console Application, based on Microsoft Visual Studio 2005 .NET, written in C++ language. #include "stdafx.h"#include using namespace std;class Adaptee{public: void SpecificRequest() { cout }}原创 2009-07-02 09:43:00 · 689 阅读 · 0 评论 -
Design Pattern - Creational Pattern - Singleton
#include "stdafx.h"#include using namespace std;class Singleton{public: static Singleton &Instance() { if (_instance == NULL) { _instance = new Singleton(); } return *_instance; }protected: Si原创 2009-07-02 11:02:00 · 473 阅读 · 0 评论 -
Design Pattern - Structural Pattern - Decorator
#include "stdafx.h"#include using namespace std;class Component{public: virtual void Operation() = 0; };class ConcreteComponent : public Component{public: virtual void Operation() { cout }};cl原创 2009-07-02 21:13:00 · 579 阅读 · 0 评论 -
Design Pattern - Structural Pattern - Proxy
#include "stdafx.h"#include using namespace std;class Subject{public: virtual void Request() = 0;};class RealSubject : public Subject{public: virtual void Request() { cout }};class Proxy : pub原创 2009-07-04 11:02:00 · 477 阅读 · 0 评论
分享