Vidyalelo
Computer Science · Q72

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 72

Q72

What is the purpose of the open modifier in Kotlin?

A.
It allows a class to be instantiated.
B.
It makes a function available for overriding.
Answer
C.
It enforces strict typing for variables.
D.
It allows a function to be called only from within its own class.

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board