Kotlin Program - Study Mode
[#226] What is the syntax for creating a subclass in Kotlin?
Correct Answer
(A) class Subclass: Superclass
[#227] How do you define a property in Kotlin that can only be accessed within the same class?
Correct Answer
(C) Using the keyword "private"
[#228] What is the keyword used to define a sealed class in Kotlin?
Correct Answer
(B) sealed
[#229] What is the keyword used to define an extension function in Kotlin?
Correct Answer
(B) fun
[#230] What is the keyword used to define a type alias in Kotlin?
Correct Answer
(D) type