+ 1
What is method
3 Réponses
+ 4
It's something that performs a particular function. For example, lets say I don't want to always type out a simple 'sum' statement on my data. I could create a method that handles it for me and returns the result I'm seeking.
public int sumItUp(int x, int y)
{
return x + y;
}
+ 2
It is nothing but function .It is a part of program which can perform certain task and can be called anywhere in program anytime.
during program.
0
its nice