But you can have more than one companion object, r...
# getting-started
a
But you can have more than one companion object, right? I guess if you can’t impose requirements on properties, then you can’t on companion objects.
r
No. You can have more than one object, but only one companion object per class.
a
That’s true, thanks for letting me know. In this case, is there any use for companion object names?
r
Self documenting code? I don't know, I never use them.