 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you the difference between inline and outside member functions in C++. Before starting, you can subscribe my YouTube channel by clicking on the link which is available at bottom right corner of this video. You can download my app TechMix that is available on Google Play. You can connect with me by following these details which are available in front of you. Now, coming on to the topic, in this demonstration, I am going to differentiate inline and outside member functions that we can implement in C++. So, first I am including a header file IOS frame. Inside this header file, a namespace std is defined that I am using because scene and cout are defined inside this std namespace. Now, I am implementing a class student. Inside this class, in private section, I am declaring two attributes. One is row number and second one is name. Inside public section, I am defining two functions. First one is read and second one will be print. So, inside read function, I am typing first cout statement that will ask enter row number, then scene, then row number variable. Then again cout, it will ask for name and then scene name. So, this is the definition of first function. Now, second function that is print, it will display row number and name on console. So, right now both the functions are inline functions. So, if we define any function inside class, then that function becomes inline function. Now, if I want to call these functions, I have to implement main function. Inside main function, I am declaring an object of this class that is student s. Now, I am calling read function first, then I am calling print function and then return zero because return type of main is integer. So, this is the example which is demonstrating the use of inline functions. Now, I am executing this code. It is asking for row number. I am entering one. It is asking for name. I am entering Sanjay. You can see the output row number one and name Sanjay is displayed on console. Now, if you want to convert these inline functions into outside member functions, then inside public section, you just have to declare these functions and close the class. Now, outside class, you have to use name of class, then scope resolution operator. Now, these are outside member functions. Similar to read inside print function, you have to use class name and scope resolution operator. This is also outside member function now and remove these curly bases. So, you can see that class is implemented starting from here to here. It is containing two variables, row number and name and two function declarations. After completion of class or termination of class, I have implemented two functions. These functions are defined outside the class. So, these functions are known as outside member functions. So, this way you can implement outside member function. Main function definition will remain same whether you implement inline function or you implement outside member functions. Again, I am executing this code. It is asking for row number and name and the row number and name are displayed on console. So, friends, I hope you have understood the difference between inline and outside member functions. I have demonstrated you how you can define functions inside the class as well as outside the class. If you want to watch more programming related videos, you can subscribe my YouTube channel. That is Sanjay Gupta underscore tech school. Thank you for watching this video.