| Creates a new instance of the class associated with this object |
| Declaration: |
| static native function newObject( ... ) |
| Description: |
| This function creates a new object, much like the "new" operator does, which is an instance of the class associated with this instance of the "Class" class. |
| Parameters: |
| Parameter #1: ... The - arguments to pass to the constructor of the class |
| Returns: |
| An instance of the class associated with this object or NULL on failure |
| Example: |
class TestClass {
number id = 0;
function constructor( number v )
.id = v;
}
object wrapper = Class.classWithName("TestClass");
object obj = wrapper.newObject(10);
|