de diamond patroon aggregates geeft aan dat de ene object meer dan alleen maar een associatie is tussen de een en de andere.
de ene object aggragate de ander object.
Vaak is er een lifecycle associatie
1 ... n
0 ... n
n ... m
Multiplicity is a definition of cardinality.
in other words it has to do with the number of elements.
But the number of elements of what?
A number to specify the allowable number of instances of described element.
This number has a lower bound and upper bound (potentially infinite)
So this has to do with the number in a diagram.
The number that shows how many of this class can or is of that other class.
0..0 collection must be empty
0..1 no istance or one instance
1..1 exactly one instance
0..* zero or more instance
1..* one or more instance
5..5 exactly 5 instances
m..n Atleast "m" but no more than "n" instances
Kico ta e siguiente punto cu mi ker a skibi over di dje?
Generalization is the process of extracting shared characteristics from two or more classes and combining them into a generalized superclass. Shared caracteristics can be attributes, associations or methods.
Dus try to immagine just like an OOP language you can create specializations of a superclass.
Each sublass contains special attributes of the upper class and their own special attributes.
So going down you specialize and going up you generalize.
The most inclusive class is the super class and is generally located at the top of the diagram.
The more specific the class, the more specialized are included underneath of a diagram.
- Subclasses inherit from superclasses
- Anything that can be done to the superclass can be done to the subclass
- A subclass has to be a special form of the superclass.