Computer Applications

Define Method signature

User Defined Methods

30 Likes

Answer

Method signature comprises of the method name and the data types of the parameters. For example, consider the below method:


int sum(int a, int b) {
    int c = a + b;
    return c;
}

Its method signature is:
sum(int, int)

Answered By

20 Likes


Related Questions