OOP vs Functional
OOP
Class as a unit, contains certain set of function and shared state within the class
The function is easier to distinguish
Inheritance
Functional
Function as a unit, each function is independent, not prefer having shared state and mutable data
The functions are difficult to distinguish, the naming is needed to be careful
Composition
Last updated
Was this helpful?