This is the example of generalization for childClass class that extends from ParentClass class.


Generalization Example in Class Diagram

There are Inheritance type and Virtual modifier in the Generalization C++ Language Properties that need to be translated and applied to the «C++Generalization» stereotype.


Generalization Inheritance visibility

Generalization - Inheritance visibility type

Old value

Translation

public

Apply the «C++Generalization» stereotype and set inheritance visibility tag value to public.

protected

Apply the «C++Generalization» stereotype and set inheritance visibility tag value to protected.

private

Apply the «C++Generalization» stereotype and set inheritance visibility tag value to private.


Generalization Virtual inheritance modifier

Generalization - Virtual inheritance modifier

Old value

Translation

nonvirtual

Apply the «C++Generalization» stereotype and set virtual inheritance tag value to false.

virtual

Apply the «C++Generalization» stereotype and set virtual inheritance tag value to true.