I already said, functions in C and C++ work the same way, with respect to scopes (such as classes).