Re: overriding method with different return type
From: Chris Uppal (chris.uppal_at_metagnostic.REMOVE-THIS.org)
Date: 04/11/04
- Next message: Chris Uppal: "Re: Want interface with some public and some package level access"
- Previous message: Christophe Vanfleteren: "Re: Extremely simple XML"
- In reply to: Paul J. Lucas: "overriding method with different return type"
- Next in thread: Paul J. Lucas: "Re: overriding method with different return type"
- Reply:(deleted message) Paul J. Lucas: "Re: overriding method with different return type"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 11 Apr 2004 08:29:05 +0100
Paul J. Lucas wrote:
> I want Base's param() to return a reference to Base.ParamBlock and
> Derived's param() to return a reference to Derived.ParamBlock.
That will be legal in 1.5 (you can try out the beta to confirm).
Be aware, however, that it is not implemented only by "relaxing" the rules of
the language (since the JVM doesn't support the change), but by making the Java
compiler automatically emit forwarding methods.
-- chris
- Next message: Chris Uppal: "Re: Want interface with some public and some package level access"
- Previous message: Christophe Vanfleteren: "Re: Extremely simple XML"
- In reply to: Paul J. Lucas: "overriding method with different return type"
- Next in thread: Paul J. Lucas: "Re: overriding method with different return type"
- Reply:(deleted message) Paul J. Lucas: "Re: overriding method with different return type"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|