ICSE Class 9 Computer Applications Question 1 of 10

Working with Methods — Question 1

Back to all questions
1
Question

Question 1

What is a method? Explain the various parts of a method.

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.