0

I'd like to know what is the advantage of a companion object to a class over having an object define in the same file or not and being accessed from that class.

So far i don't see the real advantage of the companion object.

I understand Object very well and their versality, i don't understand the specific of companion.

MaatDeamon
  • 9,532
  • 9
  • 60
  • 127

0 Answers0