Approach prohibits global methods other than main
This is not the simplest form of a C++ program.
C++ allows both global variables and global functions.
This programming style prohibits the use of all global variables and global functions except for the main function.
Unfortunately, as mentioned earlier, the main function must always be a global function in C++.
This programming style is used to achieve consistency with modern OOP environments.