Question - What is the open keyword in Kotlin used for?
Answer -
By default, the classes and functions are final in Kotlin. So, you can't inherit the class or override the functions. To do so, you need to use the open keyword before the class and function.