Last active
August 5, 2018 04:22
-
-
Save shkcodes/30f9d9165a4dc32dacc6c560c1cf81dd 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
class A { | |
private B objectB; | |
public A(B objectB) { | |
this.objectB = objectB; | |
} | |
public int doSomeWork() { | |
int result = objectB.getResult(); | |
int finalResult = result * 2; | |
return finalResult; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment