2 comments

[ 2.7 ms ] story [ 19.4 ms ] thread
(comment deleted)
We can bring another OOP idea: loose coupling, strong cohesion.

Inheritance can be useful when it captures a single shared aspect across multiple designs. It becomes unwieldy when it captures multiple shared aspects where each aspect may need to change independently.