Defining generalizations
Analyzing generalization properties
The following generalization properties each have several default values from which you can select from:
♦Visibility
♦Stereotype
Visibility
Property
Private
Protected
Package
Public
Visible
Only to the generalization itself
Only to the generalization and its inherited objects
To all objects contained within the same package
To all objects
Stereotype
Stereotype
implementation
Description
Specifies that the child object inherits the implementation of the parent object but that it does not make public its interfaces, nor support them, thus violating its substitutability
Creating a generalization
You can create a generalization only from a class to a class, or from an interface to an interface.
ϖTo create a generalization:
1 Click the Generalization tool in the palette toolbar.
2 Drag the generalization from the child class to the parent class, or from the child interface to the parent interface.
92