|
|
|
|
|
by _y5hn
1871 days ago
|
|
Inheritance is just a tool to mostly avoid. It tightly couples different class implementations. So will make later refactors error-prone and tend to scatter logic. It's misunderstanding OO as messaging between objects. Using composition or lay out data differently may yield designs with more desirable properties. There's no one answer and it depends. |
|