There are five principles of class design (aka SOLID)
The Single Responsibility Principle(SRP):
Each responsibility should be a separate class, because each responsibility is an axis of change.
A class should have one, and only one, reason to change.
原创
2012-03-19 17:10:32 ·
382 阅读 ·
0 评论