Which of the following is true about companion objects in Kotlin? - Study24x7
Social learning Network
5 followers study24x7 30 Oct 2024 11:03 AM study24x7 study24x7

Which of the following is true about companion objects in Kotlin?

A

They can hold static members for the class.

B

They are used to declare constants.

C

They are always initialized lazily.

D

They are not accessible outside the class.

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles