Comments
Parallel inheritance hierarchy occurs when changes in one class hierarchy necessitate changes in another hierarchy. This usually indicates a strong coupling between the hierarchies.
Code :
![](img/comments-before.png)
Treatment:
Merge related hierarchies by using composition instead of inheritance. python
![](img/comments-after.png)