Delegates: Difference between revisions

No edit summary
Line 252:
100 REM MAINLOOP - DELEGATION EXAMPLE
101 REM
110 DELEGATEEXISTDELEGATE=10:REM NO DELEGATE
120 GOSUB 20:REM INIT DELEGATOR
130 DELEGATE=80:REM DELEGATE IS
Line 258:
</lang>
{{out}}<pre>
RUN
No delegate : default implementation
DEFAULT IMPLEMENTATION - DONE BY DELEGATOR
Delegate with no thing: default implementation
DELEGATE IMPLEMENTATION - DONE BY DELEGATE
Delegate with a thing : delegate implementation
 
Ready
</pre>
 
 
 
=={{header|C}}==
Anonymous user