Methods


A method is a collection of statements that perform some specific task and return result to the caller. Methods allow us to reuse the code without retyping the code. In general, method declarations has six components :