Doubt in object and classes

Sir what difference will it make if i define the function outside or inside the classs in both cases

@tejasddongare,
You can define a function ones, no matter where you do it(obviously after declarations, be it in class or outside, it doesn’t matters). Also you can declare a function anywhere, but if you do it in a class, it would be a member function, else just a global function.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.