- Less coupling between classes. Using inheritance, subclasses easily make assumptions, and break LSP.
- Test for LSP (substitutability) to decide when to inherit.
- Compose when there is a "has a" (or "uses a") relationship, inherit when "is a".
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)