You are on page 1of 2

You want to implement generalization/specialization relationships from your

model in ABAP Objects.

Creating Generalization/Specialization Relationships

Using Inheritance

Specialization (UML) is a relationship in which one class (the subclass) inherits

all the main characteristics of another class (the superclass). The subclass can

also add new components (attributes, methods, and so on) and replace the

implementations with inherited methods. In the latter case, the method name in

the UML diagram is renamed within the subclass.

Figure 63: Example of Generalization/Specialization

Specialization is an implementation relationship that emphasizes similarities

of the classes. In the example above, the similarities of classes LCL_CAR,

LCL_TRUCK, and LCL_BUS are extracted to a superclass, LCL_VEHICLE.

Therefore, the components they have in common are only defined and

implemented in the superclass. They also exist in all subclasses.


Specialization is often described as an .is a. relationship. In this example, you

would say: .A truck is a (specific) vehicle..

Reversing the point of view is referred to as generalization.

You might also like