### Member Functions

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.

The definition of a member function is within the scope of its enclosing class. The body of a member function is analyzed after the class declaration so that members of that class can be used in the member function body. When the function add() is called in the following example, the data variables a, b, and c can be used in the body of add().

    class x
    {
    public:
          int add()             // inline member function add
          {return a+b+c;};
    private:
          int a,b,c;
    };

Member Scope
Static Member Functions
Class Member Lists
Const and Volatile member functions
Virtual member functions
Special member functions
Inline member functions
Member function templates