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 local path of the image on my harddrive. This subclass contains a method to get the corresponding thumbnail of the image on my harddrive. The method is called getThumb().
 
 
In a third class I want to instantiate an Image object something like:
    Image myImage = new Image("/home/pic.gif");
 
 
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?
 
 
thanx
-ryan

Reply via email to