Kenia Nimesh wrote:

> ...Since both of these are interfaces they have abstract methods which
> are just declared ..So where are all themethods like getParameter(),
> getMethod() defined???

In some class that you don't have access to, probably because it's not
public, and not documented in Javadoc.  This is the same thing that's
happening with java.util.Enumeration.  Look at the Javadoc for it, and
think about it.  When do you get an Enumeration from, if it's "just" an
interface?  Well, some other object always produces one for you, like
from the method Vector.elements().

So, in the case of Vector (I'm pretty sure), there's some class that's
not public, and is defined like this:

class VectorEnumerator implements Enumeration { ...

The Vector can instantiate it and pass it back to you "casted" to an
Enumeration.  Magic.  :)

- Robb

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to