ITPEC FE Morning April 2021 Question 45
ITPEC FE Morning April 2021 — Question 45 of 80
UML Generalization — identify the inheritance ("is-a") relationship in a class diagram.
Generalization uses an open (hollow) triangle arrowhead △ pointing from child to parent.
- •Sports car → Automobile = "Sports car is a Automobile" → generalization ✓
Why not others:
- (a) — association with 1:1 multiplicity (Automobile ↔ Inspection certificate)
- (b) — dependency (dashed arrow) — Driver depends on Automobile
- (d) — composition (filled diamond ◆) — Tire and Engine are parts of Automobile ("has-a")
Key UML relationship symbols:
- △ hollow triangle → generalization (inheritance, "is-a")
- ◇ hollow diamond → aggregation (weak "has-a", parts can exist independently)
- ◆ filled diamond → composition (strong "has-a", parts cannot exist without whole)
- --> dashed arrow → dependency (uses temporarily)
- — solid line → association (general relationship)
AI-generated — may contain errors
The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.
This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.