Let us say, you have the code:
Class C
{
C() { cout<<"This is first constructor of Class C" << endl; }
inline C(int);
};
The first constructor C() has been made inline by the compiler whether you like it or not. Basically if you implement a function within the class, it becomes inline automatically.
Now consider the second case: The function is not implemented in the class but I want to make it inline. So I have clearly written inline before it.
Regards,
Sami