4 ms·
>I have found that OOP with inheritance is actually a form of tight coupling You are not the only one. Prefer composition to inheritance is a saying for a rea
by bluGill 2y ago
>I have found that OOP with inheritance is actually a form of tight coupling
You are not the only one. Prefer composition to inheritance is a saying for a reason. Inheritance is powerful and useful for small problems, but as you say it introduces tight coupling and so should only be used where that is intended. Tight coupling isn't always bad, but it is bad often enough to avoid it.