What happens when you want to extend to 2 different classes
Joined: Apr 13, 2005
I am quite new to Java, and have been constructing a servlet, which works until I add some new functionality.
This new functionality just so happens to be a bunch of code I have copied from somewhere else. The copied code works fine in its own context. But the problem I have is that my servlet extends HttpServlet, and the copied code has a method from a different class, which was implemented in the original source as extends x.
The problem being that I can't extend 2 different classes, what is the way to tackle this problem?