For the reference: here is a related discussion
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Constructor with default values
|
2 | 922 | May 20, 2023 | |
Constructor with default parameters
|
1 | 5962 | May 14, 2018 | |
Feature Request: Constructor parameter default value when receiving null input | 53 | 25004 | October 25, 2022 | |
All default values in primary constructor - Kotlin Programming Language | 1 | 19553 | May 28, 2017 | |
Secondary constructors should be allowed to throw exceptions instead of calling this() constructor | 2 | 2753 | August 2, 2017 |