Properties
Any Bean has a set of named properties.
A property is something like an instance variable.
- Whether it corresponds to an actual instance variable of the object is an internal implementation choice.
In any case properties can be read or written using “getter” and “setter” methods.
If the property has name name and type Type these methods have the form:
public Type getName()
public void setName(Type value)
- The property name starts with a lower case letter, which is capitalized in in the name of the get/set method.
- Some properties may we read-only or write-only, without associate set or get methods.