Function Overloading and Function Formatting
Explore function overloading, infix notation, and precise formatting techniques.
We'll cover the following
Function overloading
In Kotlin, we can define functions with the same name in the same scope (file or class) as long as they have different parameter types or a different number of parameters. This is known as function overloading. Kotlin decides which function to execute based on the types of the specified arguments.
Get hands-on with 1200+ tech skills courses.