I am new to kotlin world. I have found constructor in Kotlin hard to understand. Here is a simple java example.
class ExceptionTest extends IllegalStateException {
ExceptionTest() {
}
ExceptionTest(String string) {
super(string);
}
}
And here I am trying to make a Kotlin class as same as above Java example.
class ExceptionTest : IllegalStateException() {
constructor(massage: String) {
}
}
Could some one shows what would be the Kotlin version looks like ?
Thanks.