Design Patterns · Junior · Question 65 of 75

What's the difference between "is-a" and "has-a" relationships?

Explanation

If the relationship is really "has-a" or "uses-a", inheritance creates unnecessary coupling.

Further reading

Problem with a question

Design Patterns · Junior · question 65

Test yourself

Take the Design Patterns · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz