Karlo Lozovina
08/13/2020, 3:05 PMspand
08/13/2020, 3:07 PMnanodeath
08/13/2020, 3:08 PMcompanion
kindKarlo Lozovina
08/13/2020, 3:19 PMval foobar = object {
val x = "x"
}
all of the instances will share the same object?Dominaezzz
08/13/2020, 3:19 PMDominaezzz
08/13/2020, 3:20 PMKarlo Lozovina
08/13/2020, 3:20 PMKarlo Lozovina
08/13/2020, 3:20 PMShawn
08/13/2020, 3:22 PMclass Foo {
companion object {
val x = "x"
}
}
Shawn
08/13/2020, 3:23 PMFoo
will have a reference to that same companion object