|Lecture 4 - Slide 3 : 40|
In contrast to similar object-oriented languages, C++ allows functions and variables outside classes
Helper functions are typically wrapped in a namespace together with one or more classes.
In the simple case they are placed in the global name space together with the classes
Seen from a C perspective: funtions and variables outside classes represent backward compatibility
Compared with Java and C#: In C++ there is less emphasis on static variables and methods