I was reading some object-oriented programming notes that mentioned that we should avoid wrapping functions in classes if it is not required, since wrapping 'things' in classes reduces efficiency. Is this true? And what exactly does it mean when it says 'things' (this seems to imply that this efficiency reduction is not limited to only when wrapping functions in classes)?
Wrapping functions/'things' in classes reduces efficiency?
The Pointer
- 149
- 5