October 2003
Intermediate to advanced
736 pages
15h 25m
English
Once upon a time, in a strange land south of here, lived Peter. Peter was a diligent worker who would readily accept requests from his boss. However, his boss was a mean, untrusting man who insisted on steady progress reports. Because Peter did not want his boss standing in his office looking over his shoulder, Peter promised to notify his boss whenever his work progressed. Peter implemented this promise by periodically calling his boss back via a typed reference like so:
Class Worker Dim myboss As Boss Public Sub Advise(theboss As Boss) Me.myboss = theboss End Sub Public Sub DoWork() Console.WriteLine("Worker: work started") If Not (myboss Is Nothing) Then myboss.WorkStarted() Console.WriteLine("Worker: work progressing") If Not (myboss ...