What defines a sealed class in Kotlin ??

(A) Its another name for an abstract class

(B) It represents restricted class hierarchies

(C) It is used in every Kotlin program

(D) None of above

View Answer

(B) It represents restricted class hierarchies