In c++ a function contained within a class is called
In c++ a function contained within a class is called the member function.
Amember function of a class is a function that has its definition or its prototype within the class definition like any other variable. It operates on an object of the class of which it is a member, and has access to all the members of a class for that object.
Member functions and functions are names used interchangeably in reference to classes. Function prototypes are declared within the class definition. These prototypes can take the form of non-class functions as well as class suitable prototypes. Functions can be declared and defined within the class definition.