Last active
November 4, 2019 07:19
-
-
Save libliboom/1b516d10ad8f2298033f9863a609aeeb 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 Transaction { | |
private int value; | |
/*package*/ Transaction(int value, Account credit, Account debit) { | |
this.value = value; | |
credit.addCredit(this); | |
debit.addDebit(this); | |
} | |
/*package*/ int getValue() { | |
return value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment