Skip to content

Braval Tom SCT212-0468/2024#80

Open
BravoOdhiambo wants to merge 7 commits into
mulangonando:mainfrom
BravoOdhiambo:main
Open

Braval Tom SCT212-0468/2024#80
BravoOdhiambo wants to merge 7 commits into
mulangonando:mainfrom
BravoOdhiambo:main

Conversation

@BravoOdhiambo

Copy link
Copy Markdown

SCT212-0468/2024

Transaction System (Java OOP Assignment)
A simulation of a bank transaction system built around an interface (TransactionInterface) and three progressively specialized classes:

BaseTransaction — the concrete base class. Stores an amount, date, and auto-generated UUID. Its apply() just logs the transaction without touching the account balance.
DepositTransaction — credits money to a BankAccount. Irreversible by design.
WithdrawalTransaction — debits money, can throw InsufficientFundsException, supports partial withdrawals, and can be reversed via reverse().
InsufficientFundsException — a custom checked exception that carries details about the shortfall.
BankAccount — a simple account with credit() and debit() methods.

@BravoOdhiambo BravoOdhiambo changed the title Java Assignment Braval Tom SCT212-0468/2024 Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant