Instruction

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Function Parameters

You can pass information to functions. This information is referred to as function parameters. For example:

Variable Number of Arguments

Imagine you want to print all the character names from your favorite novel but don’t know how many characters there are. Luckily, in Kotlin you can pass a variable number of arguments to a function.

Returning Values

You’ve seen how to pass information as parameters to functions. A function can output values as well.

See forum comments
Download course materials from Github
Previous: Introduction Next: Demo