I was expecting a compile time error as teh Class B does not contain the no-arg. constructor . Then how is the call to super(); in Class C resolved ??? Thanks in advance, Best wishes,
"The man who can drive himself further once the effort gets painful is the man who will win." <br />Roger Bannister
posted 12 years ago
Hi Vishy, This is a tricky question.The line public boolean B(Stringmsg) is a method and not a constructor since there is a boolean return type. Sice there is no constructor,, a default nor arg constructor is provided adn hence this code gives no compiler error.