Need of Methods

 Need of Methods


A function is a block containing a number of statements, which perform a specific and well defined task(s). Every function has a unique name which is sued to identify it in a program. Once a task is packaged in a method, it can be called from any where in a program through other statements.