What are different types of constructors in kotlin?
Answer / Shashi
In Kotlin, there are primary constructors (default) and secondary constructors. Primary constructors have a name and can contain parameters, while secondary constructors do not have a name but can be created by using the `init` block or inheritance.
| Is This Answer Correct ? | 0 Yes | 0 No |
what operator is used to handle null exceptions in Kotlin?
How to make a class data class ?
Does Kotlin support primitive Datatypes?
What is Range in Kotlin?
What is the difference between Const and Val?
What is the difference between inline and infix functions? Give an example of each.
What are the types of strings available in kotlin?
What is Ranges operator in Kotlin?
Mention few features that Kotlin provides but not java ?
What are the Strings available in Kotlin ?
What is the type of the following Array?, val arr = arrayOf(1, 2, 3);
Tell me the default behavior of Kotlin classes?