View Full Version : extending two classes from a class

preethi A
07-04-2008, 06:52 AM
I need to extend two classes from a single class like

public class OutServlet extends HttpServlet,AbstractManagerEventListener

But it is impossible to extend two classes at a time in java.Is there any way to extend two classes.please assist me to do this.


07-04-2008, 07:58 AM
perhaps if you extend your AbstractManagerEventListener from HttpServlet, then you can extend OutServlet from AbstractManagerEventListener and you have all the stuff from the other two classes available in OutServlet. But that is only possible if AbstractManagerEventListener is a class of your own.

preethi A
07-04-2008, 08:12 AM
Thanks.But AbstractManagerEventListener is a predefined class.