Now I'll add Airports to the Flight class, as shown in Listing 6.
现在我将Airport添加到flight类,如清单6所示。
Figure 6 shows that the Flight is associated with a specific Plane, and the Flight class knows about this association.
图6显示Flight与一个特定的Plane相关联,而且Flight类知道这个关联。
Continuing with our Flight class example, we can describe the class's attributes with the attribute type information, as shown in Table 1.
继续我们的Flight类的例子,我们可以使用属性类型信息来描述类的属性,如表1所示。
应用推荐