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

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.

主站蜘蛛池模板: 榕江县| 苏尼特右旗| 饶河县| 高邑县| 禹州市| 平安县| 黄石市| 高安市| 安陆市| 罗田县| 益阳市| 乐安县| 襄城县| 四平市| 外汇| 湘潭县| 阳泉市| 宁海县| 富阳市| 商洛市| 长顺县| 江口县| 武平县| 花莲市| 阳新县| 军事| 马关县| 鄢陵县| 志丹县| 上杭县| 聂荣县| 遂宁市| 邵武市| 宁陕县| 北宁市| 博罗县| 南投县| 瑞金市| 清涧县| 长阳| 当阳市|