You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Invocation<br />
• Caller invokes callback indirectly through delegate<br />
– uses method call syntax on delegate<br />
– delegate calls target method on target object<br />
class Student<br />
{<br />
public GradeChange Targets;<br />
invoke callback<br />
through delegate<br />
}<br />
public void RecordClass(int grade)<br />
{<br />
// update gpa<br />
...<br />
Targets(gpa);<br />
}<br />
callback takes<br />
double argument<br />
72