Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jsp beans and inheritance

Status
Not open for further replies.

dexter195

Programmer
Jun 18, 2003
220
EU
is it possible to create a bean that inherits methods from another bean. ive got 4 or 5 beans that require all or some methods from a bean. (and theres a lot of methods in each bean)

at them moment im creating each bean seperatly. this is starting to get messy.

the reason im asking this is that no bean examples ive seen use constructors, so theres no way to call the super() class (as far as i know).

cheers for your help
 
AFAIK, you don't need to use super() - you can just extend the bean. Or you could just call "super()" anyway, which will call the default constructor.

--------------------------------------------------
Free Database Connection Pooling Software
 
cheers sedj.

i extended the other class and that did the trick.

thanks again.

dex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top