Last active
November 18, 2017 07:00
-
-
Save Hariofspades/80381a9823c4b7ca4e8c89673e231d2e to your computer and use it in GitHub Desktop.
Explaining dependency
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 Targaryens { | |
public Targaryens() { | |
//Each time we use Targaryens, we need to create Dragons instance | |
Dragons dragons = new Dragons(); | |
dragons.callForWar(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment