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 asuperclass called SuperOne, it has a method to convert a
string to a URL formatcalled toURL().
I havean Image class that is a subclass of SuperOne. It holds
astringstoringthe local
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 Wentzel
= 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 what to call
}
-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.
I want to be able to
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 this;
}
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/thumbs";