Was studying C++ when this answer came across. It suggests a
Код: Выделить всё
classКод: Выделить всё
staticBut if the
Код: Выделить всё
classКод: Выделить всё
namespaceКод: Выделить всё
=deleteКод: Выделить всё
namespaceI've read this answer and with my understanding, it says
Код: Выделить всё
namespaceКод: Выделить всё
classКод: Выделить всё
publicКод: Выделить всё
privateКод: Выделить всё
protectedSo if I were to answer my own question, it would be for better access control and just because it is a
Код: Выделить всё
classКод: Выделить всё
classКод: Выделить всё
=deleteКод: Выделить всё
namespaceИсточник: https://stackoverflow.com/questions/781 ... -namespace
Мобильная версия