69.9k views
3 votes
A method which returns a value is referred to as…

User Johneric
by
3.4k points

1 Answer

5 votes

Well, it could be multiple things.

For example:
A function can return a value. (i.e: int test() { return 1; }

A declaration can return a value. (i.e: int test2 = 1;)

But I'd say a function because it makes more sense logically.

User Daniel Castro
by
3.1k points