Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 239 Bytes

return_values.md

File metadata and controls

13 lines (10 loc) · 239 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;
}