111k views
4 votes
What is aggregation:

A.) First determine the functionality of the system is to provide without consideration of implementation constraints.

B.) An aggregation is an object (the whole) composed of different parts (other objects).

C.) Formal description of a system, or a detailed plan of the system at component level to guide its implementation.

1 Answer

1 vote

Final answer:

Aggregation is an object-oriented concept where a whole object is composed of other objects that can exist independently, representing a "has-a" relationship.

Step-by-step explanation:

The term aggregation in the context described relates to an object-oriented programming concept. Essentially, aggregation is a type of association that represents a "has-a" relationship between a whole and its parts, meaning an object can be comprised of other objects. These parts can exist independently from the whole, which differentiates aggregation from composition, where parts cannot exist without the whole. An example would be a car (the whole) that has an engine, wheels, and seats (the parts). The engine, wheels, and seats are objects in their own right and can be separated from the car and still exist.

User Shonzilla
by
8.6k points