 
                 
                InterviewSolution
| 1. | What is meant by referencing member functions inside class definition and outside class definition? | 
| Answer» In C++, the member functions can be coded in two ways : 
 The code of the function is same in both the cases, but the function header is different as explained below: When a member function is defined inside a class, we do not require to place membership label along with the function name. We use only small functions inside the class definition and such functions are known as inline functions. 2. Outside Class Definition Using Scope Resolution Operator (::) The member function declared in the class must be defined outside the class. Here the operator :: known as scope resolution operator helps in defining the member function outside the class. return type name_of_the_class::function_name (argument list) | |