A private member function can only be called by another function that is a member of its class. Even an object cannot invoke a private function using the dot operator. The example shown in the figure, illustrates the usage of private member functions. If n1 is an object of member, then the statement n1.input(); will not work because objects cannot access private members. However, the function input() can be called by the function updated to update the value of n.
Example:
Class member
{
int n;
void input(void); // private member function
public:
void update(void);
void output(void);
};
void member:: update(void)
{
input(); //simple call,no object used.
}

