eWebProgrammer
Distributednetworks GofPatterns
prev prev
Course navigation
Using JavaBean properties
Programmatic use of properties
The most straightforward way to use properties is that you work directly with accessor methods.
An accessor method is a method that is usually small, simple and provides the means for the state of an object to be accessed from other parts of a program.
Although it introduces a new dependency, use of the methods are preferred to directly accessing state data because they provide an abstraction layer.
Course navigation