If you need to overload a function instead of implementing the same function multiple times, you can use default arguments. Default arguments can be applied to constructors as well. Watch now to see more from Florina’s tutorial on default arguments in this episode of Kotlin Vocabulary.

#kotlin #mobile-apps #programming #developer

Kotlin Vocabulary - Don’t argue with default arguments
1.70 GEEK