You're right, of course. :-) I'm in class, and wanted to do something tricky on an assignment.
 
But it didn't work.

Stupid Java.
I'm SO going back to C# when this class is over!!!!

 
On 10/14/06, Baba <[EMAIL PROTECTED]> wrote:
Tom Wilson wrote:
> i have a weird situation. I have a class that inherits another class
> (let's just say sub inherits super).
>
> I want to call a method in super that's overridden. in sub. that's
> fine, I can say super.toString(). But toString calls ANOTHER method
> that's overridden: getPay()
>
> is there a way to either:
> 1. create a reference to the current object in such a way that the
> runtime sees it ONLY as super type?
> 2. force the super class to call the super implementation of functions
> instead of calling the sub-class implementation?
>
> This would be trivial in C++ or C#: I'd just say super::getPay()
> inside of super::toString(), but it's not working in Java.
>
> thanks. :-)
>
> --
> Tom Wilson
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> KI6ABZ

Give up, use C# ?

_______________________________________________
libsecondlife-dev mailing list
libsecondlife-dev@gna.org
https://mail.gna.org/listinfo/libsecondlife-dev
http://www.libsecondlife.org/



--
Tom Wilson
[EMAIL PROTECTED]
KI6ABZ
_______________________________________________
libsecondlife-dev mailing list
libsecondlife-dev@gna.org
https://mail.gna.org/listinfo/libsecondlife-dev
http://www.libsecondlife.org/

Reply via email to