Last active
October 7, 2018 06:05
-
-
Save jayden-lee/5a67754911841ee5ddbbde7e2a95eed9 to your computer and use it in GitHub Desktop.
Spring Framework Start
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 { | |
private B b = new B(); | |
} |
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 { | |
private B b; | |
public A(B b) { | |
this.b = b; | |
} | |
public void setB(B b) { | |
this.b = b; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment