Changes

Jump to navigation Jump to search
1 byte removed ,  16:49, 22 December 2015
</pre>
The constructor of a class can be invoked by calling the virtual function {{Code|new()}}. Instance methods can then called by passing on the resulting Java object as first argument. In the following example, 256 bytes are written to the file {{Code|output.txt}}. First, a new {{Code|FileWriter}} instance is created, and its {{Code|write()}} function is called in the next step:
<pre class="brush:xquery">declare namespace fw = "java.io.FileWriter";
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu