类层次(Class Hierarchies) 概念:有时,需要将实体型中的实体分成子类。分类后体 现为一种层次关系,最上层为超类(Super class),下层即为 子类。
基于46个网页-相关网页
Expose interfaces on class hierarchies 暴露接口的类层次结构
Bad habit: Not using class hierarchies.
坏习惯:不使用类层次结构。
For class hierarchies, there shouldn't be more than two or three total levels.
对于类的层级,总体不应超过2到3个层级。
R's approach to OOP is based on generic functions rather than on class hierarchies.
R 的 OOP 方式基于泛型函数(generic function),而不是基于类层次结构。
应用推荐