what is method define it?
Answers
Answered by
9
a particular procedure for accomplishing or approaching something, especially a systematic or established one....
Answered by
2
Method is a block of code which can be called in any method.By using method we can solve the problem of writing code several number of times.We have to call method after declaring it.
For ex .
Name();
function Name(){
System.out.println("Hello there");
}
Now if we call Name() method in any body it will give output
Hello there.
Thanks
For ex .
Name();
function Name(){
System.out.println("Hello there");
}
Now if we call Name() method in any body it will give output
Hello there.
Thanks
Similar questions