当我们需要修改一个处理了多个职责的类,这个修改可能会影响到该类的其他功能。
When we need to make a change in a class having more responsibilities the change might affect the other functionality of the classes.
当你要建立多个具有能够使用的、相似功能的自定义类时,这对于你是非常有用的。
This is useful if you need to create multiple custom classes that behave similarly and can be used interchangeably.
开发人员可以通过此功能创建支持类,这些支持类提供已封装功能的多个实现。
It allows the developer to create supporting classes that provide multiple implementations of the encapsulated functionality.
开发人员可以通过此功能创建支持类,这些支持类提供已封装功能的多个实现。
It allows the developer to create supporting classes that provide multiple implementations of the encapsulated functionality.
应用推荐