> From: Donald Jolley [mailto:jolleyt...@gmail.com] 
> Subject: Do imports inherit?

> I was sort of thinking that if I imported those classes 
> into a parent class that would be sufficient for all the
> children.  Apparently it isn't.

Your final conclusion is correct - it's not sufficient.  This is a basic 
characteristic of Java; if a class explicitly uses a type, the type must be 
declared in that class.

Also note that it's generally frowned upon to import with wildcards; be 
specific with the classes you use.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to