- Design Patterns and Best Practices in Java
- Kamalmeet Singh Adrian Ianculescu LUCIAN PAUL TORJE
- 91字
- 2021-06-25 20:52:28
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.
推薦閱讀
- Apache Spark 2 for Beginners
- Python Deep Learning
- Drupal 8 Module Development
- 用戶體驗增長:數(shù)字化·智能化·綠色化
- Jenkins Continuous Integration Cookbook(Second Edition)
- 微服務(wù)架構(gòu)深度解析:原理、實踐與進階
- 利用Python進行數(shù)據(jù)分析
- Lighttpd源碼分析
- Learning R for Geospatial Analysis
- Python自然語言理解:自然語言理解系統(tǒng)開發(fā)與應(yīng)用實戰(zhàn)
- QlikView Unlocked
- Kotlin進階實戰(zhàn)
- 每個人的Python:數(shù)學(xué)、算法和游戲編程訓(xùn)練營
- 第五空間戰(zhàn)略:大國間的網(wǎng)絡(luò)博弈
- MATLAB計算機視覺實戰(zhàn)