KnowledgeBoat Logo
|
LoginJOIN NOW

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