Hi Everyone,
What is the difference between method and function?
Can someone provide a simple explanation of methods and functions?
Good for the beginners.
Thanks,
John
Difference between a method and a function
2571
20-Jul-2015
Shivani
29-Jun-2022In Simple Words
Function — a set of instructions that perform a task
Method — a set of instructions that are associated with an object.
Anonymous User
20-Jul-2015