+ 2
Why double Constructor is used in Kotlin
I did not understand, why or when to use double Constructor, please explain anyone.
1 Answer
+ 1
the double constructor is used for different variants of it, for example, there is a variable age and name age - optional, but the user may or may not enter it, double constructors are needed here.