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

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.

主站蜘蛛池模板: 且末县| 高州市| 英德市| 磴口县| 绿春县| 金阳县| 邳州市| 山阳县| 诏安县| 大冶市| 静安区| 汉源县| 汤原县| 舟曲县| 东源县| 德安县| 格尔木市| 婺源县| 丹棱县| 吐鲁番市| 柳林县| 扶绥县| 绍兴县| 凤台县| 旬邑县| 策勒县| 侯马市| 延寿县| 淳安县| 株洲市| 武隆县| 周口市| 河源市| 西华县| 龙海市| 大连市| 鞍山市| 德令哈市| 湾仔区| 濉溪县| 搜索|