- 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.
推薦閱讀
- Qt 5 and OpenCV 4 Computer Vision Projects
- WildFly:New Features
- Instant Testing with CasperJS
- Kibana Essentials
- Mastering Entity Framework
- Python網絡爬蟲從入門到實踐(第2版)
- Python機器學習算法與實戰
- Getting Started with Greenplum for Big Data Analytics
- ASP.NET開發與應用教程
- 打開Go語言之門:入門、實戰與進階
- Creating Data Stories with Tableau Public
- 人工智能算法(卷1):基礎算法
- Django 5企業級Web應用開發實戰(視頻教學版)
- 軟件工程基礎與實訓教程
- React and React Native