Chapter Contents |
Previous |
Next |
SAS Component Language: Reference |
Advocates of object-oriented programming claim that applications that are developed using an object-oriented approach
Software objects are self-contained entities that possess three basic characteristics:
behavior |
a collection of operations that an object can perform
on itself or on other objects. Methods define the operations
that an object can perform. For example, you can use the _onGeneric method
in sashelp.classes.programHalt.class to trap
all generic errors. |
state | a collection of attributes and their
current values. Two of the programHalt component's attributes are stopExecution (which determines whether the program continues
to execute after the program halt occurs) and dump
(which contains the program-halt information). You can set these values through
SCL. |
identity | a unique value that distinguishes one object from another. This identifier is referred to as its object identifier. The object identifier is created by SCL when you instantiate an object with the _NEW_ operator. This identifier is also used as the first-level qualifier in SCL dot notation. |
This chapter describes how object-oriented techniques and related concepts are implemented in SCL.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.