Usage of Returned Value

After a method is executed and returns a value, this value can be used in multiple ways.

The first is to to assign the result as a value of a variable of a compatible type:

The second is for the result to be used in an expression:

The third is to feed the result of the method to another method:

results matching ""

    No results matching ""