Tell me, please, what is the difference between black and white rhombus in class inheritance in UML diagrams?

Tell me, please, what is the difference between black and white rhombus in class inheritance in UML diagrams?

An open rhombus is an aggregation relationship. Aggregation is the ratio of the whole part.
MyEntityClass ) can exist both independently of parts ( MyClass ), and with them;Filled diamond - composition. Composition is a strict form of aggregation.
MyClass2 ) can belong to only one composite ( MyEntityClass ) - joint ownership of parts is impossible.The key difference between composition and aggregation is that parts do not have independent life outside the whole (composite) in composition. Moreover, in a composition, each part belongs to one and only one whole (composite), whereas during aggregation, a part can be shared by several whole (aggregates) .
D. Arlow, A. Neustadt - "UML2 and Unified Process"
Source: https://ru.stackoverflow.com/questions/264823/
All Articles