Delegates: Difference between revisions

Content added Content deleted
Line 1,634: Line 1,634:
# Same as the above, but with an anonymous class:
# Same as the above, but with an anonymous class:
a->SetDelegate(Base->New() implements Thingable {
a->SetDelegate(Base->New() implements Thingable {
New() {}
method : public : Thing() ~ String {
method : public : Thing() ~ String {
return "anonymous delegate implementation";
return "anonymous delegate implementation";
Line 1,644: Line 1,643:
}
}
</lang>
</lang>



=={{header|Objective-C}}==
=={{header|Objective-C}}==