Understand Kotlin Multiple Constructors
In Kotlin, you have one primary and many secondary constructors.
Primary Constructor
This is primary constructor with one parameter.
class Example constructor(private val param1: String) {
init {
println("init is called.")
}
}
You ca...
vtsen.hashnode.dev3 min read