Created
November 14, 2018 10:08
-
-
Save mattumotu/5cf6f16122dd5d138c4442f824c41aa6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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