My 2 Cents Define Member Function

Swati Mishra

Content Writer
A function is set of statements that perform a specific task in response to a massage. The functions of an object are called the member function. We are declared the member function inside the class body. The function declaration introduces the function in the class and the function definition contains the function code. Now we will define the example of member function.

Example

Class Car
{
Void honk ();
};
From above example honk () is the member function, which is declared inside the class
 
Top