Beginner Kotlin
Q26 / 100

What is the purpose of the open keyword in Kotlin?

Correct! Well done.

Incorrect.

The correct answer is B) To mark a class or method as inheritable/overridable (since all are final by default)

B

Correct Answer

To mark a class or method as inheritable/overridable (since all are final by default)

Explanation

In Kotlin, classes and members are final by default. The open modifier allows them to be subclassed or overridden.

Progress
26/100