官术网_书友最值得收藏!

Generalization

Inheritance is also called an is-a relationship because the class inherited from another class can be used as the superclass.

When a class represents the shared characteristics of more than one class, it is called a generalization; for example, Vehicle is a generalization of Bike, Car, and Truck. Similarly, when a class represents a special instance of a general class, it is called a specialization, so a Car is a specialization of Vehicle, as shown in the following diagram:

In UML terminology, the relation to describe inheritance is called Generalization.

主站蜘蛛池模板: 大埔县| 尚志市| 蛟河市| 太保市| 南充市| 马公市| 南城县| 鹤峰县| 新闻| 望城县| 故城县| 洛浦县| 菏泽市| 邯郸市| 平远县| 灵寿县| 麻栗坡县| 长沙市| 平和县| 开化县| 大同县| 武夷山市| 宜宾市| 合水县| 阜阳市| 郓城县| 烟台市| 怀化市| 田林县| 从化市| 山东省| 库车县| 炉霍县| 横山县| 延川县| 小金县| 穆棱市| 和林格尔县| 辽宁省| 宁蒗| 梧州市|