> The getter/setter can enforce the integrity of the > data, such as not allowing withdrawl if it will render > account balance to be negative. If there is no data > encapsulation, you have to proliferate this logic > allow over wherever you want to touch that data.
Data integrity can be accomplished without getter/setters and without the logic spread out everywhere. This is the responsibility of the data/business processing classes. Mike Bresnahan =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
