Difference between function and method

What is the basic difference between methods and function? Is it like this:- The functions written inside a class is a method? can we say this?

hey @bihan ,
yes you are thinking it in a correct way .
and its is like this only , just that methods most of the time work on the data , that is contained inside the class.

else they are same.

1 Like

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.