posted 10 years ago
How would a superclass know which sub-class method to use? Or if there even is a sub-class?
I am assuming you are talking about creating an instance of the superclass, not simply using a super-class reference variable that it pointing to a subclass instance.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors