2 ms·
OOP puts data and behavior together in objects. Which is 100% compatible with functional programming. It is mutability that is incompatible with FP, but mutabi
by whstl 2y ago
OOP puts data and behavior together in objects. Which is 100% compatible with functional programming.
It is mutability that is incompatible with FP, but mutability is a property of imperative programming, not of OOP.
It is even possible to have 100% purely functional Java, for example, if you just eschew mutability.