Learning objectives: to create a Java Bean.
You will use beans all the time in Java. To create one, you will need to create an ordinary class, add private member variables, add at least one empty constructor, and add public getter and setter methods to it. This class will be a blueprint for all the objects created for that class. Review carefully the code we develop in the next stage to see how we use a bean to retrieve values from a form.