+ 1

what is method?

30th Jun 2016, 10:48 PM
salman engineer
salman engineer - avatar
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....
1st Jul 2016, 1:44 AM
tumor12
- 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
1st Jul 2016, 2:03 AM
Chandraprakash Sharma
Chandraprakash Sharma - avatar