new1"
From Documentation
Robertwenzel (talk | contribs) |
|||
Line 9: | Line 9: | ||
Instantiates the given class with an argument. It assumes the given class has a proper constructor. | Instantiates the given class with an argument. It assumes the given class has a proper constructor. | ||
− | ''' | + | '''Parameters''' |
* cls - the class. It could be an instance of either String or Class. | * cls - the class. It could be an instance of either String or Class. | ||
* arg - the argument to be passed to the constructor. | * arg - the argument to be passed to the constructor. |
Revision as of 12:16, 26 October 2017
Object new1(Object cls, Object arg);
Instantiates the given class with an argument. It assumes the given class has a proper constructor.
Parameters
- cls - the class. It could be an instance of either String or Class.
- arg - the argument to be passed to the constructor.
Version History
Version | Date | Content |
---|---|---|