- 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.
推薦閱讀
- 觸·心:DT時(shí)代的大數(shù)據(jù)精準(zhǔn)營(yíng)銷
- The Android Game Developer's Handbook
- 編程的修煉
- .NET 4.0面向?qū)ο缶幊搪劊夯A(chǔ)篇
- 神經(jīng)網(wǎng)絡(luò)編程實(shí)戰(zhàn):Java語(yǔ)言實(shí)現(xiàn)(原書第2版)
- OpenResty完全開發(fā)指南:構(gòu)建百萬(wàn)級(jí)別并發(fā)的Web應(yīng)用
- Mastering Linux Security and Hardening
- 大學(xué)計(jì)算機(jī)基礎(chǔ)
- Vue.js 3應(yīng)用開發(fā)與核心源碼解析
- Android高級(jí)開發(fā)實(shí)戰(zhàn):UI、NDK與安全
- 大規(guī)模語(yǔ)言模型開發(fā)基礎(chǔ)與實(shí)踐
- Professional JavaScript
- C++面向?qū)ο蟪绦蛟O(shè)計(jì)
- Distributed Computing with Python
- AI輔助編程Python實(shí)戰(zhàn):基于GitHub Copilot和ChatGPT