Member Functions in C++

Member Functions in C++

One of the most important concept is OOP in C++ and other programming langauages. When it comes to member function it is important to know three things about class. The first thing is data member the second thing is member function and the third thing is access specifiers. There are two types of member functions or member methods. The first type is non-static function which is also known as non-static method and the second type is static function whic is also known as static method.

Example

void display(){} // This is non-static function

static void display(){} // This is static function

Member function

Reference To Learn More

Comments

Popular posts from this blog

Friend Function in C++

Data Member and Static Keyword in C++

Use Of CPP