This is a slightly less concrete relationship between two classes. Class A and class B have a has-a relationship if one or both need the other’s object to perform an operation, but both class objects can exist independently of each other.
This implies that a class has a reference to an object of the other class but does not decide the lifetime of the other class’s referenced object.