Generalization (inheritance)
A solid line ending in a hollow triangle is generalization, UML's inheritance arrow. The triangle points at the more general class (the parent); the class at the other end is the more specific one (the subclass).
Easily confused with
How to read it
Generalization relates a specific class to a more general one. In UML 2.5.1, every instance of the specific classifier is also an instance of the general one, and the specific classifier inherits the general one's features. The arrowhead is a hollow triangle, and it points at the general class. When several subclasses share a parent, each can have its own line and arrowhead, which the specification calls the separate target style, or the lines can join into one arrowhead, the shared target style. Virginia Tech's OpenDSA notes add that merged lines don't mean the subclasses depend on each other, only that they share an ancestor. Robert C. Martin's 1997 tutorial describes the arrowhead as looking "rather like a slice of pizza".
Also searched as: generalization (inheritance) symbol, inheritance arrow, uml generalization (inheritance), uml inheritance.
Look-alikes
The same hollow triangle on a dashed line is Realization: a class implementing an interface, not inheriting from a class. An open arrowhead made of two strokes is something else: on a dashed line it is a Dependency, and on a solid line it marks a navigable end of an Association. A small filled triangle beside an association's name only gives the direction to read the name in.
Differences in course notes
The University of Washington's 2016 software engineering slides vary the arrow by what the parent is: a solid line and black arrow for a class, a solid line and white arrow for an abstract class, and a dashed line and white arrow for an interface. The UML specification uses a hollow triangle for every generalization, whatever the parent.
Read next
- Next in UML diagram symbolsRealizationA dashed line ending in a hollow triangle is realization. The element at the plain end implements the interface or specification that the triangle points at.
- The same shape in African flagsFlag of the ComorosThe Comoros flag is four horizontal stripes, yellow, white, red and blue from the top, with a green triangle along the pole holding a white crescent and four white stars in a line between its tips. Norway’s Store norske leksikon explains the crescent as the symbol of Islam and the four stars as the four islands of the Comoros; Lex says the four stripes are said to stand for the islands too.
More UML diagram symbols
The same shape elsewhere
Browse symbols drawn with arrows, lines, squares and rectangles or triangles.
Sources
- OMG Unified Modeling Language (OMG UML), Version 2.5.1, OMG document formal/17-12-05, December 2017, Object Management Group, 9.2.3.2 Generalization; 9.2.4.2 Other elements; 9.9.7 Generalization
- UML Tutorial: Part 1 -- Class Diagrams, Robert C. Martin, 1997, Northeastern University, Khoury College of Computer Sciences (course reading, CS U370, Fall 2007), Inheritance
- The Unified Modeling Language (OpenDSA Complete Catalog, 3.2), Chapter 3, Object-Oriented Programming, OpenDSA Project, Virginia Tech, 3.2.1.2 Class Diagrams, Inheritance relationships
- UML (CIS 400 Textbook: Object-Oriented Design, Implementation, and Testing), Chapter 5, UML, Kansas State University, Department of Computer Science, Generalization
- UML Class Diagrams (CSE 403 lecture slides), Emina Torlak, CSE 403: Software Engineering, Fall 2016, University of Washington, Paul G. Allen School of Computer Science & Engineering (Internet Archive), Slide 19
Researched, edited and approved by Rory Hansen before publishing. Last reviewed October 9, 2026. How we research
Added .