User guide

xxix
Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-20
Dynamic Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-20
The new[ ] Built-In Function . . . . . . . . . . . . . . . . . . . . . . . 24-20
The size() Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-22
The delete() Method. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-22
Assignments to and from Dynamic Arrays . . . . . . . . . . . . 24-22
Associative Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-24
Wildcard Indexes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-25
String Indexes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-25
Associative Array Assignments and Arguments. . . . . . . . 24-26
Associative Array Methods. . . . . . . . . . . . . . . . . . . . . . . . 24-26
Queues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-29
Queue Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-31
The foreach Loop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-34
Array Aggregates (Reduction/Manipulation) Methods in
Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-37
Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-40
Creating an Instance (object) of a Class . . . . . . . . . . . . . . . . 24-41
Constructors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-42
Assignment, Re-naming and Copying . . . . . . . . . . . . . . . . . . 24-44
Static Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-45
Global Constant Class Properties . . . . . . . . . . . . . . . . . . . . . 24-46
Method Declarations: Out of Class Body Declarations . . . . . 24-47
Class Extensions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-49
Subclasses and Inheritance. . . . . . . . . . . . . . . . . . . . . . . . . . 24-49
Abstract classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-50
Polymorphism. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-52