Ryan wrote:
>
> Then this is my next problem.
>
> I currently have getThumb() returning an Image object.
>
> The part where I am stuck at is what to do in the toURL() method.
>
> my mock getThumb() method currently looks something like
> public Image getThumb(){
> this.iValue = "/home/thu
> Then this is my next problem.
>
> I currently have getThumb() returning an Image object.
>
> The part where I am stuck at is what to do in the toURL() method.
>
> my mock getThumb() method currently looks something like
> public Image getThumb(){
> this.iValue = "/home/thumbs";
> return
}
-ryan
- Original Message -
From: "Michael Wentzel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 22, 2001 8:32 AM
Subject: RE: Java Question on Inheritance
> > Ultimately, I want to get the thumb of this Image and convert it to a
URL
url = toURL( myImage.getThumb() ); in your SuperOne or its
sub-class.
=== Gary
Grewal
-Original Message-From: Ryan
[mailto:[EMAIL PROTECTED]]Sent: Thursday, March 22, 2001 10:38
AMTo: [EMAIL PROTECTED]Subject: Java
Question on Inheritance
I don't really know wh
> Ultimately, I want to get the thumb of this Image and convert it to a URL.
I want > to be able to do this efficiently and use something like the
following syntax.
>
>myImage.getThumb().toURL()
>
>
>Is this possible?
Yes, but getThumb() must return a subclass of SuperOne.
---
Michael We
I don't think you can convert a gif file to anything
else but other image format.
gp
--- Ryan <[EMAIL PROTECTED]> wrote:
> I don't really know what to call what I'm having
> trouble with but here is what I am trying to do.
>
> I have a superclass called SuperOne, it has a method
> to convert a
I don't really know what to call what I'm having trouble with but here is
what I am trying to do.
I have a superclass called SuperOne, it has a method to convert a
string to a URL format called toURL().
I have an Image class that is a subclass of SuperOne. It holds
a string storing the l