Intermediate
Kotlin
Q56 / 100
What is the difference between object and class in Kotlin?
Correct! Well done.
Incorrect.
The correct answer is B) object is a singleton; class can be instantiated multiple times
B
Correct Answer
object is a singleton; class can be instantiated multiple times
Explanation
An object declaration creates a singleton — one instance is created lazily and shared globally. A class is a blueprint for creating multiple instances.
Progress
56/100