Problem Statement
How do you define default parameter values in Kotlin functions?
Explanation
Kotlin allows you to specify default values for function parameters directly in the parameter list using the equals sign, eliminating the need for multiple overloaded versions of the same function. When calling a function, you can omit arguments that have default values, and they will use the specified defaults.
This feature dramatically reduces boilerplate compared to Java where you need to create multiple constructor or method overloads to achieve the same functionality. Default parameters work with named arguments for even more flexibility in function calls.
