dear all, i have a situation that i have beans that share some data i did a super class wiche contain these data but i think its not the right way i thought of composition then of sending the general class to the constructor and setting the general data can any body please help me in the best practice in this situation
Why do you think that inheritance is not the right way to do it?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Joined: Apr 10, 2006
cose i think it loose the generalization in inheritance