Composition, Aggregation and Association. UML Class diagram relationships

Опубликовано: 31 Октябрь 2024
на канале: Python for Everyone
2,123
51

You program in an Object Oriented language and have used aggregation and composition many times, BUT… what was the difference again? After watching this video, you can explain a random person at the coffee machine where to find association, aggregation and composition in their code.

C H A P T E R S
0:20 Associate objects at runtime
0:50 Two types of association: Composition and Aggregation
1:00 Composition "owns" objects
1:44 Alternative to composition is aggregation
2:50 Tip to recognize association in other code
3:20 Does cardinality influence the association type?
3:50 Example with 1-to-1 relationship

M Y O N L I N E T R A I N I N G
🎓Like my style of teaching? Try free chapters of online courses: https://pythonforeveryone.com

#python #pythonforeveryone #programming #python