- 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.
推薦閱讀
- JavaScript百煉成仙
- Practical UX Design
- Web Development with Django Cookbook
- STM32F0實戰(zhàn):基于HAL庫開發(fā)
- 零基礎(chǔ)學(xué)Java程序設(shè)計
- Mastering Google App Engine
- C#程序設(shè)計
- Hands-On Functional Programming with TypeScript
- Learning Concurrency in Kotlin
- Python全棧數(shù)據(jù)工程師養(yǎng)成攻略(視頻講解版)
- Scala for Machine Learning(Second Edition)
- 深度學(xué)習(xí)程序設(shè)計實戰(zhàn)
- Python預(yù)測分析與機器學(xué)習(xí)
- Microsoft HoloLens By Example
- JavaWeb從入門到精通(視頻實戰(zhàn)版)