3.1.1.12 Returning a value/values from a subroutine. Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Define the key word for returning a value from a subroutine.

A

Return (value);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What return type would this use?

A

Any return type other than void.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define what must happen if a method does not return a value.

A

It must be declared to return void.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly