Created
March 4, 2019 21:31
-
-
Save Pacane/0343a64b6c8364d506ddb61b57825a79 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
class Bob { | |
final EventBus bus; | |
Bob() { | |
this.bus = new EventBus(); | |
} | |
void faireQuelqueChose() { | |
bus.utiliserBus(); | |
} | |
} |
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
class Bob { | |
final EventBus bus; | |
Bob() { | |
this.bus = BusInstance.get(); | |
} | |
void faireQuelqueChose() { | |
bus.utiliserBus(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment