Computer Applications
What is a method? Explain the various parts of a method.
User Defined Methods
75 Likes
Answer
A method is a named block of code within a class. It executes a defined set of instructions when called from another part of the program. The different parts of the method are access-modifier, type, method-name, parameter-list and method-body.
Answered By
50 Likes
Related Questions
State whether the following statement is True or False :
The keyword static makes a method a class method.
State whether the following statement is True or False :
An impure method always returns the same value when the same arguments are given.
What is a method signature?
How do you define and invoke a method?