+ 1
what is method?
3 Answers
+ 1
I don't know how to explain.. I'll try.
a method is like a group of code that returns a type of data (bool, int, and stuff), and this group of code has a name. Using this name, you call the method so you don't have to write the code over and over again...
that's basically what it is.
hope I didn't get you more confused....
- 1
simple method is the way of doing work if you want to do same work need not to writer whole code just call the method it comes with in the class