OOP doesn’t imply coupling tho. Say interfaces. Their purpose is no decouple stuff into testable units of logic. Say you have some definition of logic T. Then you have multiple implementations of that logic by concrete classes A and B. Something like that you do with functional languages which use types.
However, OOP frequently used in a bad way where people create some tightly coupled logic. That what makes OOP bad in a sense. It is not too restrictive as FP, and it is easy to produce poorly architected code which will work.
OO and 'is-a' relationships are orthogonly. Any lang with interfaces have 'is-a' relationship. Haskell also have 'is-a' relationship while being the most anti-OO language.
View all comments
0
u/[deleted] Sep 25 '23
[deleted] — view deleted comment