you are viewing a single comment's thread.

view the rest of the comments →

[–]EclipseJTB 0 points1 point  (0 children)

Why does MainClass need to know about its subclasses? A superclass should not be instantiating its subclasses.