In a companion object, I want to have a field recording all the instances instantiated from the companion class (it is abstract), can I do that?
Especially, I thought this
would reference to any instances of the subclass, but it won't compile when I use it in a companion object.