+ 4

What is methods?

25th Sep 2017, 10:47 AM
Sandesh Shrestha
Sandesh Shrestha - avatar
3 Answers
25th Sep 2017, 11:02 AM
Nithiwat
Nithiwat - avatar
0
method (...){...............}
27th Sep 2017, 12:06 PM
Yevhen Dombrovskiy
Yevhen Dombrovskiy - avatar
0
As classes represent objects, methods are often compared to actions (or behaviour) of objects. They are always belong to an object and they always used for action. You can also think of it as: class or object can just "be", but method of that object most often "do".
28th Sep 2017, 3:36 AM
Sergey “Beatsbury” Semerikov
Sergey “Beatsbury” Semerikov - avatar