In this section, you will learn how to add a method in your VJET file.
Note: add the method before the closing brackets of the block.
//> public int getBalance()
getBalance: function() {
return this.balance;
}


//> public int getBalance()
The above statement informs the method access modifiers, return type and parameters type add annotation above your method declaration:
As soon as you type the comment in the editor area, our new method will change its icon in the Outline view.
In addition, if your method have syntax error. Note that error annotation in the editor's rulers are updated as you type, This
behavior can be controlled via the VJET Errors/Warnings option located on the
VJET > Editor errors/warnings preference page.
