Vidyalelo
Computer Science · Q34

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 34

Q34

What is a companion object in Kotlin?

A.
An object that is used to store constants
B.
An object that is used to represent data structures
C.
An object that is used to create instances of a class
D.
An object that is used to define static members of a class
Answer

Answer: Option D

Solution

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