Counter’s constructors
•
The zero-argument constructor used by
Rhino runtime to create instances
•
•
public Counter () { }
•
•
Method
jsConstructor
defines the JavaScript
constructor
•
•
public void jsConstructor(int a) { count = a; }
•