Vidyalelo
Computer Science · Q21

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 21

Q21

What is a sealed class in Kotlin?

A.
A class that is used to represent data structures
B.
A class that is used to create instances of a class
C.
A class that is used to store constants
D.
A class that is used to define a closed set of subclasses
Answer

Answer: Option D

Solution

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