Skip to content

Create automatically all accessor for your new Class

Dr. Nicola Mingotti edited this page Dec 11, 2021 · 1 revision

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.


NM 10-Aug-2021. Tested in Cuis5.0-4738.image.

Clone this wiki locally