If your class inherits from the other class, it is an “IS-A” relationship. If the class is passed to the other class in the constructor this is a “HAS-A” relationship.
If your class inherits from the other class, it is an “IS-A” relationship. If the class is passed to the other class in the constructor this is a “HAS-A” relationship.