I was reading some C++ 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? If it is true, then what exactly does/could 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