posted 21 years ago
Well, there are all kinds of "business logic", from formatting to calculations to validation to persistence. Here's a very simple example, using formatting. The bean is called Name, and supports three attributes: first, last and middle. There are getters and setters for each attribute.
However, there is also one additional getter, getFull, which will return the formatted full name. For example, if the name attributes are "Joseph", "Dominic", and "Pluta", the getFull method will return the value "Joseph D. Pluta". This is the "business logic" for the Name method, and is encapsulated in the bean.
Joe