Re: Java Question on Inheritance

2001-03-22 Thread William Brogden
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

RE: Java Question on Inheritance

2001-03-22 Thread Michael Wentzel
> 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

Re: Java Question on Inheritance

2001-03-22 Thread Ryan
} -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

RE: Java Question on Inheritance

2001-03-22 Thread Grewal, Gary
  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

RE: Java Question on Inheritance

2001-03-22 Thread Michael Wentzel
> 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

Re: Java Question on Inheritance

2001-03-22 Thread Tom Horn
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

Java Question on Inheritance

2001-03-22 Thread Ryan
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