Skip to content

Instantly share code, notes, and snippets.

@libliboom
Last active November 4, 2019 07:19
Show Gist options
  • Save libliboom/1b516d10ad8f2298033f9863a609aeeb to your computer and use it in GitHub Desktop.
Save libliboom/1b516d10ad8f2298033f9863a609aeeb to your computer and use it in GitHub Desktop.
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