How do an object inside a class with a companion o...
# announcements
s
How do an object inside a class with a companion object keyword and an object inside the same class with just the object keyword differ? Would the one withour "companion" would be created upon every instance of the class?
s
can you give a pseudo code ?
n
if I'm reading your question right, they're all singletons, but they're referenced differently.