Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 295 Bytes

File metadata and controls

16 lines (11 loc) · 295 Bytes

Return

If the only thing you could do with methods was to call them, they would have limited uses.

This is why methods can also "return" results to the code that calls them.

int plusOne(int x) {
    return x + 1;
}