Question - What is the use of the open keyword in Kotlin?
Answer -
In Kotlin, the classes and functions are final by default. So, it is not possible to inherit the class or override the functions. To achieve this, we need to use the open keyword before the class and function.