Originally posted by Jessica Sant:
So... Write answer -- wrong logic
Hmmm...you mean "write answer, rong spelling"?
It's important to remember that when a class is instantiated, all superclasses of that class are instantiated. This step is essential as the class that you're instantiating might have inherited data members that are initialized within the superclass. If this step wasn't taken, you could easily end up with an object that is only partially initialized.
Therefore, in any constructor, unless you specify a call to the parent class' constructor with "super," there is always an implied call to the default constructor of the parent. As class A doesn't have a default constructor, you'd have to specify the call to A's constructor explicity in any extending class in order to extend A properly.
I hope that helps,
Corey