Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

创建模型-建造者模型中的一个问题 #13

Open
HelenXR opened this issue Jan 4, 2017 · 0 comments
Open

创建模型-建造者模型中的一个问题 #13

HelenXR opened this issue Jan 4, 2017 · 0 comments

Comments

@HelenXR
Copy link

HelenXR commented Jan 4, 2017

你给的设计模式文档非常的清晰,比GOF的设计模式容易阅读,又比设计模式之禅容易理解,感谢你的分享.
在学习过程中,对于创建者模型-建造者模型的这一部分代码有一个疑问:Builder接口类修改为只提供标准接口,不带任何实现,具体的实现让ConcreteBuilder去完成,如下:
class Builder
{
public:
Builder();
virtual ~Builder();

virtual void buildPartA() = 0;
virtual void buildPartB() = 0;
virtual void buildPartC() = 0;
virtual Product * getResult() = 0;

};
是否更好一些呢.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant