Skip to content

Instantly share code, notes, and snippets.

@mattumotu
Created November 14, 2018 10:08
Show Gist options
  • Save mattumotu/5cf6f16122dd5d138c4442f824c41aa6 to your computer and use it in GitHub Desktop.
Save mattumotu/5cf6f16122dd5d138c4442f824c41aa6 to your computer and use it in GitHub Desktop.
// matchingMethod1 matches myDelegate delegate
public return-type matchingMethod1(<ParameterList>) { ... }
// matchingMethod2 matches myDelegate delegate
public return-type matchingMethod2(<ParameterList>) { ... }
// askPolitely matches responseBehaviour delegate
public void askPolitely(Person borrower) {
borrower.say("Y-- Excuse me. You-- I believe you have my stapler?");
}
// theLastStraw matches responseBehaviour delegate
public void theLastStraw(Person borrower) {
borrower.building.burn();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment