I am learning Kotlin from official docs, I created one class like below where I created one constructor which has two parameters. Body of constructor is in init block.
class Person(name: String, surname: String) {
init {
Log.d("App", "Hello");
}
}
Well, I want to create one more constructor which will take one parameter in a constructor. What is the way to do in Kotlin