目录

How do I generate the setter and getter methods of a class?

  1. Right-click in a class and choose Generate from the shortcut menu.

  2. Select Getter and Setter.

  3. Select the fields to generate the getter and setter, and click OK.