Skip to main content
3 of 4
edited tags
Christophe
  • 82.2k
  • 11
  • 136
  • 202

Wrapping functions/'things' in classes reduces efficiency?

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)?