To change a method to a read or write property
Place the caret at the name of the method in
Class View, Object Browser, or in the code editor.
On the main menu or context menu, choose
Refactor | Convert Method to Property.
In the dialog box that opens, specify a property name:
OKto change the selected method to a read or a write property. At the same time, all method calls will be substituted with the corresponding property accesses.