类层次结构如图11所示。
坏习惯:不使用类层次结构。
这是我的类层次结构的屏幕截图。
从一个抽象的类层次结构得到正确的场?
显然,要修复这个问题,必须避免循环的类层次结构。
Obviously, to fix this problem, you must avoid the cyclic class hierarchy.
类层次结构中的每一类型都具有一定的契约关系。
Every single one of those types in the hierarchy has a contract.
此类优化的另一个重要的例子是基于类层次结构的优化。
Another important example of this kind of optimization is class-hierarchy-based optimization.
业务域驱动类的层次结构的一个简单例子。
A simple example of a business domain-driven class hierarchy.
因此,请尽量避免将任何类或层次结构放入project或home目录。
Thus, try to avoid putting any classes or hierarchies into your project or home directory.
接口不是类的层次结构的一部分,虽然他们结合班工作。
Interfaces are not part of the class hierarchy, although they work in combination with classes.
接口不是类的层次结构的一部分,虽然他们结合班工作。
Interfaces are not part of the class hierarchy, although they work in combination with classes.
应用推荐