|
No.
The way you are doing means you are calling .toURL() method on what ever is
returned by the method getThumb(). Unless getThumb returns a type of Object of
type SuperOne or it's sub-class you cannot call this method and you should see a
compile time error.
What
you can do is
URL
url = toURL( myImage.getThumb() ); in your SuperOne or its
sub-class.
===
|
- Java Question on Inheritance Ryan
- Re: Java Question on Inheritance Tom Horn
- RE: Java Question on Inheritance Michael Wentzel
- Re: Java Question on Inheritance Ryan
- Re: Java Question on Inheritance William Brogden
- RE: Java Question on Inheritance Grewal, Gary
- RE: Java Question on Inheritance Michael Wentzel
