Translations:Development/Tutorials/Common Programming Mistakes/7/en

From KDE TechBase
Revision as of 07:31, 26 October 2019 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

If you have a method in a class that does not access any members and therefore does not need an object to operate, make it static. If additionally, it is a private helper function that is not needed outside of the file, make it a file-static function. That hides the symbol completely.