Well. This is partly correct. If you do not call the parent class constructor explicitly java automatically calls the 'no argument' constructor of the parent class, if the parent class has one. This is done in the begining of the child constructor. If you want to call the constructor with some argument(s), then it has to be done explicitly, using super(). And should be the first statement in the child constructor. Hope this helps. Kaustubh.
Kaustubh. Mumbai, India.
posted 13 years ago
Thanks Ray and Kaustubh
Won't you please? Please won't you be my neighbor? - Fred Rogers. Tiny ad: