Member functions are operators and functions that are declared as members of a class. Member functions do not include operators and functions declared with the friend specifier. These are called friends of a class. You can declare a member function as static; this is called a static member function. A member function that is not declared as static is called a nonstatic member function.
class x
{
public:
int add() // inline member function add
{return a+b+c;};
private:
int a,b,c;
};
You can use trailing return types for member functions, including those that have complicated return types. For more information, see Trailing return type (C++11).