What is difference b/w method and function? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is difference b/w method and function?

4th Sep 2016, 10:15 AM
Aurangzeb Halepoto
Aurangzeb Halepoto - avatar
2 Answers
+ 9
These terms can be used interchangeably. in object oriented programming the term Method is mostly used over function, but they mean the same thing.
4th Sep 2016, 12:30 PM
Mike
Mike - avatar
+ 2
there's no difference, the two means the same thing.. just that in some IDEs they use function instead of method
13th Oct 2016, 8:42 PM
Maduekwe Ebuka Collins
Maduekwe Ebuka Collins - avatar