Python Class Aggregation

preview_player
Показать описание
Python Object Oriented Programming. Association describes relationships between classes. Under association, we have aggregation, and composition.
Aggregation implies a relationship where a class can exist independently of another class. Composition implies a relationship where a class cannot exist independently of another class. In this video, we cover the idea of aggregation, where a class is created and can interact with a separate instance of another class. Thus, this relationship is class A HAS class B. The idea differs from inheritance, where class A IS class B, if A inherits from B.

Source Code:

Python Object Oriented Programming Playlist:

Python Data Structures and Algorithms Playlist:

Python Game Programming Projects Playlist:

Subscribe for more coding tutorials 😄!
Рекомендации по теме
Комментарии
Автор

Thanks to you I understand C++ better than my friends

GaneshDonald
join shbcf.ru