Originally posted by Jessica Sant:
super() -- is only used in a constructor.
super.something -- can be used anywhere in a class (but its usually used when you override a method from the superclass)
...So... does that help? or just confuse the situation even more?
[ October 04, 2003: Message edited by: Jessica Sant ]
thanks j, i think u've armed moi with what i supposed was true before coming across some mock questions whose answer suggested that super() could also be used to override a method from a superclass as long as it wasn't used in a constructor. ( i thunk i saw something similar to dat also on one of marcus's question that an old friend gave moi - i'll try and check moi stuff if i still lay moi hands on it; just to serve as a confirmation and reference).
from what u've said now, the bottomline is that super() is only used in constructors.
thanks.