Create automatically all accessors for a Class instance variables
Jump to navigation
Jump to search
Problem. You defined you new class, say it is called BankAccount. Now suppose you have defined 10 instance variables. If you had to define by hand 10 setters and 10 getters for all of those variables it would be quite a boring task. Can you do it faster? Yes, you can!
Solution. Open a Browser, in the classes list pane select the Class where you wish to add all the accessor methods. That is, select BankAccount. Then, right click it, a pull down window appears, got to the end of it and select more
. In the new window select create inst var accessors
. Voila'! all your methods should be done.