Def.- A generalization is an abstraction principle applied to hierarchically structure the semantics of a model.
A generalization is a relationship between a general classifier and a special classifier, where the special classifier adds more features (specialization) and behaves in a way compatible to the general classifier.
Notation & Semantics
A generalization or specialization classifies features hierarchically; features with general meinings are allocated to general classifiers and special features are allocated to classifiers that area subclassifiers of general classifiers.
The features of superclassifiers are passed on to their subclassifiers (inheritance).
So a subclassifier has the features specified for it and the features of its superclassifiers (or overwrite them).
Proposal:
class GeomFigure
class Circle {
generalizes GeomFigure
}
class Rectangle {
generalizes GeomFigure
}
class Triangle {
generalizes GeomFigure
}
Generalization
Notation & Semantics
Proposal: