Delegates: Difference between revisions

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

edits