+ 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