Extends relationships

In Unified Modeling Language (UML) visualization class diagrams, an extends relationship (also called an inheritance or an is-a relationship) implies that a specialized (child) class is based on a general (parent) class.

In UML class diagrams, extends relationships apply only to container-managed persistence (CMP) entity beans. They do not apply to session or message-driven beans.

An extends relationship connector appears as a solid line with an unfilled arrowhead that points from the specialized (child) Java class or Enterprise JavaBeans (EJB) enterprise bean to the general (parent) Java class or EJB enterprise bean. You can also examine and design extends (inheritance) relationships between CMP entity beans.

Java source code UML visualization

The image shows the sample Java source code of an extends relationship.

The image shows how an extends relationship is represented in UML class diagrams.

 

Parent topic

Relationships

 

Related concepts

Association relationships
Dependency relationships
Implements relationships
Owned element association relationships

 

Related tasks

Showing related Java elements
Showing related Java elements based on outgoing relationships
Showing related Java elements based on incoming relationships