Created
June 20, 2013 19:47
-
-
Save amoerie/5825999 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
SmartBox smartBox = new SmartBox(); | |
smartBox.bind(Warrior.class, Samurai.class); | |
smartBox.bind(Weapon.class, Nunchucks.class); | |
Warrior warrior = smartBox.get(Warrior.class); | |
warrior.fight(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment