Class as a unit, contains certain set of function and shared state within the class
The function is easier to distinguish
Inheritance
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 2 years ago