Chapter Contents

Previous

Next
Class Class: _new

Class Class: _new



Invoked automatically when an object is created using the _new method from the Class class or the _new_ operator in SCL


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:


Creating New Objects Programmatically

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.