Created
March 14, 2020 18:08
-
-
Save PatilShreyas/f12879f021a8175229b0ea380ef4fb84 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
@Singleton | |
public class Money { | |
public Job mJob; | |
@Inject | |
public Money(Job job) { | |
this.mJob = job; | |
if (mJob != null) { | |
System.out.println("I've Money!"); | |
} else { | |
System.out.println("I'm not working yet!"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment