Created
September 7, 2015 10:50
-
-
Save up1/6c5c4db1fe68bd88539b to your computer and use it in GitHub Desktop.
Example Injection
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 A { | |
a() | |
} | |
class B { | |
b() | |
} | |
class C { | |
A a; | |
B b; | |
setA( A a ) { | |
this.a = a; | |
} | |
setB( B b ) { | |
this.b = b; | |
} | |
main() { | |
a.a(); | |
b.b(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment