Access specifier Return Type name_Of_Method( input arguments) { //body of the method }
Access specifier Return Type name_Of_Method( datatype input_argument_1,datatype input_argument_2// .. . . . ) { //body of the method }
Int a; a=add(c,d);
//calling method in main Myfunction(a);