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

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.

主站蜘蛛池模板: 蓬溪县| 依兰县| 威海市| 鄂托克旗| 郓城县| 东乌珠穆沁旗| 上饶县| 青浦区| 伊通| 龙陵县| 龙南县| 卓尼县| 冷水江市| 象山县| 盐津县| 贺州市| 万荣县| 唐河县| 秦安县| 广昌县| 广宁县| 永登县| 积石山| 习水县| 门源| 东港市| 云霄县| 三门峡市| 连平县| 海南省| 南投县| 维西| 大同县| 汤原县| 公安县| 嘉兴市| 新宾| 本溪| 福泉市| 璧山县| 汶上县|