![]() Chapter Contents |
![]() Previous |
![]() Next |
| Class Class: _new |
| Syntax | |
| Details | |
| Creating New Objects Programmatically | |
Syntax |
| return = objectName._new( ); |
| Details |
The syntax of _new and the way that arguments of _new are processed depend on the type of class to which _new is sent. The class can be one of these:
Use the first syntax (objectName._new) to create a new object. When invoking _new on an object subclass, the _init method of the new instance (new-object-id) is executed and passed init-arg if it is specified. Then, the new instance's _new method is invoked with the remaining arguments (new-arg...new-arg-n).
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.