Yin Stadfield wrote:Just curious. Am I missing something?
If abstract classes cannot be instantiated, why is there a need for it to have a constructor?
The constructor is only invoked when we use the new keyword. But since it's an abstract class, why have a constructor then?
Hint: when you instantiate a class, does the constructor of that class' superclass ever gets called?