Lets register a callback to roll the dice. Lets look at the actual callback method now. You will notice that the linkage section passes an object reference to a single die. The linkage section of the callback method must match what you added to the collection. Remember from above we were adding object references.
Collection classes can hold object references or actual date values.
In this case we added object references. The callback method then invokes a method in the dice class to roll a single die. 01 lsDice object reference. Procedure Division using lsDice. This website is copyrighted by Object-Z, Systems Inc.