method is function?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

method is function??

16th Jan 2018, 5:13 AM
이재호
이재호 - avatar
3 Answers
+ 7
In simple words, a method is a function that belongs to an object. For more information study OOP concepts.
16th Jan 2018, 6:48 AM
Insight
Insight - avatar
+ 2
Yep ^^ The method is exactly a function but in classes, they're the owners of that "function". Just that class can call it.
16th Jan 2018, 5:20 AM
Sebastián Zapata
Sebastián Zapata - avatar
+ 1
Sébastien you are referring out good but I think you are losing out the concept it is object actually not class
16th Jan 2018, 8:34 PM
Rahul Bansal
Rahul Bansal - avatar