This is where the Open Closed Principle comes into play.
这就是开闭原则一展身手的地方了。
So, did this solution conform to the Open Closed Principle?
那么,这个解决方案遵守了开闭原则么?
I would recommend that you treat the Open Closed Principle as a design vector rather than an outright goal.
我建议你将开闭原则作为一个设计方向而非一个完全的目标。
应用推荐