I think this was discussed before, but there's no ...
# announcements
l
I think this was discussed before, but there's no way to inherit a companion object, right? For instance, I need that every
Model
class have a
Factory
for it
b
i've wanted this exact same behavior. you can have a companion implement an interface, but i don't think you can enforce that a class has a companion object which implements an interface
l
there's no such thing as an abstract companion object hahaha
b
i wanted the same thing you do: to enforce sub classes of a type all have a factory method for creating them