answersLogoWhite

0

Aggregation in Object-Oriented Programming (OOP) is a relationship between two classes where one class (the whole) contains references to objects of another class (the parts), but the lifecycle of the parts is independent of the whole. This means that if the whole is destroyed, the parts can still exist independently. For example, a university (whole) can have multiple departments (parts), but if the university is closed, the departments may still exist elsewhere. Aggregation is often represented using a "has-a" relationship in UML diagrams.

User Avatar

AnswerBot

1mo ago

What else can I help you with?