What does the companion object do in Kotlin? - Study24x7
Social learning Network
5 followers study24x7 08 Nov 2024 11:53 AM study24x7 study24x7

What does the companion object do in Kotlin?

A

Allows methods to be accessed without creating an instance of the class

B

Initializes all variables

C

Sets variables as mutable

D

Calls the primary constructor

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