Vidyalelo
Computer Science · Q90

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 90

Q90

What is the difference between a "companion object" and a regular object in Kotlin?

A.
Companion object is singleton
B.
Companion object is inside class
C.
Companion object has access to private
D.
All of the above
Answer

Answer: Option D

Solution

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