why don't you try and figure out the output yourself, and then run it and see if you're. right. If so, AWESOME!!!.
If you're wrong, try and figure out WHY you're wrong.
If you can't figure out why you're wrong, come back and ask us why the output is different from what you expect (and please tell us what you expected, what you got, and WHY you thought what you did).
THAT'S going to be the best way for you to learn.
Never ascribe to malice that which can be adequately explained by stupidity.
Joined: Nov 06, 2000
(I don't want to circumvent anyone's learning experience, but...) Tim-Ting, your subclass declarations need to use the "extends" keyword. The way you've coded it, those classes are not subclassing SuperClass. Once you've done that, you can start exploring the question you raised.