previous | start | next

## JavaBeans Components

- Many programmers follow the additional convention that the name of a bean class should end in `Bean`

      public class UserBean
      {
         // Required default constructor
         public UserBean() { . . . }

         // creditCard property
         public String getCreditCard() { . . . }
         public void setCreditCard(String newValue) { . . . }

         // shopping property
         public boolean isShopping() { . . . }
         public void setShopping(boolean newValue) { . . . }

         // Other methods
         . . .
         // Instance fields
         . . .
      }

previous | start | next