Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-04-2008, 05:52 AM   PM User | #1
preethi A
New to the CF scene

 
Join Date: Apr 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
preethi A is an unknown quantity at this point
extending two classes from a class

Hi,
I need to extend two classes from a single class like
Code:
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.

Thanks
preethi A is offline   Reply With Quote
Old 07-04-2008, 06:58 AM   PM User | #2
Roelf
Senior Coder

 
Join Date: Jun 2002
Location: Zwolle, The Netherlands
Posts: 1,110
Thanks: 2
Thanked 28 Times in 28 Posts
Roelf is on a distinguished road
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.
Roelf is offline   Reply With Quote
Old 07-04-2008, 07:12 AM   PM User | #3
preethi A
New to the CF scene

 
Join Date: Apr 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
preethi A is an unknown quantity at this point
Thanks.But AbstractManagerEventListener is a predefined class.
preethi A is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:41 PM.


Advertisement
Log in to turn off these ads.