Computer Applications

Define Method signature

User Defined Methods

32 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

21 Likes


Related Questions