Why do we need write open before class name in Kotlin while working on inheritance?
Answer / Kumar Vivekanand Vivek
In Kotlin, the `open` keyword is used to declare a class as open for inheritance. By default, classes in Kotlin are final and cannot be inherited from. When you use `open`, it allows other classes to extend the current one.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we create uninitialized array in kotlin?
What does "Null Safety" mean in Kotlin?
Give me name of the extension methods Kotlin provides to java.io.File
How do you check if two Strings are equal valued ?
What is the difference between val and var?
Which type of programming does kotlin support?
How do you realize Ternary Conditional Operator in Kotlin ?
When instruction in Kotlin are executed ?
What are High-Level Functions in Kotlin?
What are different types of constructors in kotlin?
Describe the use of extension function?
Why you should shift from Java to kotlin?