Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    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.
    I am the luckiest man in the world

  • #3
    New to the CF scene
    Join Date
    Apr 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks.But AbstractManagerEventListener is a predefined class.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •