+ 3
Why it's called methods?
4 Respuestas
+ 10
few more examples might help clear it
https://www.sololearn.com/discuss/733526/?ref=app
https://www.sololearn.com/discuss/99571/?ref=app
+ 1
just for distinction whit OOP I think
+ 1
Hi Tannoy
the difference with a Method, is that it is always associated with a set of data ( or state) encapsulated with it.
You call the method to operate on the data and nothing else.
Together the data and the method make an Object.
This allows you to build code that has a separation of concerns, and makes it more manageable and maintainable
+ 1
they are the block of statements which define the behavior of the object.