posted 19 years ago
This question has been given in http://www.danchisholm.net/july21/mybook/chapter11/exam1ans.html
Question 2
Suppose that the superclass constructor invocation, "super(argumentListopt);", appears explicitly in a subclass constructor. If a compile-time error is to be avoided then the arguments for the superclass constructor invocation, "super(argumentListopt);", can not refer to which of the following?
a. Static variables declared in this class or any superclass.
b. Instance variables declared in this class or any superclass.
c. Static methods declared in this class or any superclass.
d. Instance methods declared in this class or any superclass.
e. The keyword this.
f. The keyword super.
Can anybody explain it with an Example....
Thanks,
Deepak
(Hopefully fixed the link...)
[ May 10, 2005: Message edited by: Barry Gaunt ]