Below shows a class declaration with a function declaration. Below that is the function definition for the declaration. The class name is used in conjunction with the scope operator '::' to form the function definition. Without it the function would be an ordinary non-member function.