Chapter Contents

Previous

Next
Object Class: _init

Object Class: _init



Initializes an object


Syntax
Details

Syntax

objectName._init( );
objectName._init( numArg );


Details

When an object is created, SAS/AF software automatically invokes the _init method; you do not call _init explicitly unless you write your own _init method to override default processing. In this case, you must invoke the parent class _init method so the object is initialized according to the parent class' specifications. When calling the inherited _init method, pass _SELF_ as object. _SELF_ is a special variable containing the ID of the current object.

If you override the _init method, you must call the super _init method (the _init method inherited from the parent class) before any other methods can be invoked on the object. The object is not fully instantiated until the _init method for the object's parent class is executed.

A numeric argument can be sent to the _init method by either the _new method or the SCL function INSTANCE.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.