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

一个疑问 #1

Open
whitewzb opened this issue May 28, 2019 · 1 comment
Open

一个疑问 #1

whitewzb opened this issue May 28, 2019 · 1 comment

Comments

@whitewzb
Copy link

为什么BaseService类定义为抽象类,因为我看此类的方法已经全部实现。还是说只是为了作为父类被继承么或者拓展一些实现?

@caoxile
Copy link
Owner

caoxile commented Jan 3, 2020

编程的原则:面向抽象编程
不建议 父类实例化。

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