Extends relationships

In Unified Modeling Language (UML) 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.

As the following figures illustrates, an extends relationship connector is displayed 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.
Related concepts
Association relationships
Dependency relationships
Implements relationships
Related tasks
Customizing queries for showing related elements
Showing related Java elements
Showing related Java elements based on outgoing relationships
Showing related Java elements based on incoming relationships
Creating extends relationships between Java classes
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.