Beginner
Kotlin
Q18 / 100
How do you declare an interface in Kotlin?
Correct! Well done.
Incorrect.
The correct answer is B) interface MyInterface
B
Correct Answer
interface MyInterface
Explanation
Kotlin uses the interface keyword. Unlike Java, Kotlin interfaces can have property declarations and default implementations.
Progress
18/100