Friend function are outside functions that can access private data in a class. They are defined as normal functions but are declared inside the class with prefix friend.
Inline functions. Usually when we call a function, the control should move from caller function to the called function. But inline functions are those which expand during calling without jumping. function is defined at the place where it are called if it is an inline function