In object-oriented programming, association is the common term for both the has-a and part-of relationships but is not limited to these. Two objects are in an association relationship is a generic statement, which means that we don’t worry about the lifetime dependency between the objects.