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

抽象工厂模式(Abstract Factory)的类图中工厂方法的返回值类型错误 #26

Open
orangeince opened this issue Feb 21, 2018 · 1 comment

Comments

@orangeince
Copy link

orangeince commented Feb 21, 2018

首先感谢🙏作者的付出,讲解的很到位,受益匪浅,学习过程中发现了一些小小疑惑
image
如图中高亮所示,工厂方法的返回值类型应该是对应的AbstractProduct类型或ConcreteProduct类型吧

@JunYong1024
Copy link

对的,我看的时候也很奇怪,这里应该是写错了,应该是AbstractProduct类型,后面代码有给出
image

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

2 participants