所以,造型就是沿着继承图朝着基类向上:向上造型。
Thus, casting to a base type is moving up the inheritance diagram: upcasting.
凭借继承图,开发者能快速访问到类型的整个继承关系。
The ancestry diagram allows the developer to quickly access the hierarchy of a type.
因此,我们可以在单元级别定义这些变量,这样,单元中的每个框都将继承这些定义(图31)。
Therefore, we can define those variables at the cell level, so that every box in the cell will inherit those definitions (Figure 31).
应用推荐