Question: You can only call public and protected constructors of the super class in a subclass if the subclass is not in the same package because only those are inherited.
Correct Answer : false
Can anyone explain me why the above statement is false...
Thanks in advance..
regards.. rajani.,
(changed title so that people know which is which) [ May 14, 2004: Message edited by: Barry Gaunt ]
Question: You can only call public and protected constructors of the super class in a subclass if the subclass is not in the same package because only those are inherited.
For the above to be true, there must be another condition on the superclass: it must be public to be visible to the subclass. So IMHO, in the general case, the above answer of "false" is correct. [ May 15, 2004: Message edited by: Barry Gaunt ]