Pregunta de entrevista de Georgia Tech Research Institute

Briefly describe aggregation in object-oriented programming.

Respuesta de la entrevista

Anónimo

3 de nov de 2019

In aggregation, objects have a "has-a" relationship with other objects. For example, a car has wheels. So, if you were given a Car class and a Wheel class, these classes have aggregation relationships.