Skip to content

SCT212-0081/2024 implemntetion of assignment#59

Open
bucky-io wants to merge 1 commit into
mulangonando:mainfrom
bucky-io:main
Open

SCT212-0081/2024 implemntetion of assignment#59
bucky-io wants to merge 1 commit into
mulangonando:mainfrom
bucky-io:main

Conversation

@bucky-io

@bucky-io bucky-io commented Jun 9, 2026

Copy link
Copy Markdown

OYUGI HUMPHREY
sct212-0081/2024
java assignment

This repository contains my implementation of a Java-based banking transaction system. I refactored BaseTransaction into a concrete class implementing TransactionInterface, implemented DepositTransaction and WithdrawalTransaction with proper method overriding, and built a custom InsufficientFundsException for insufficient balance scenarios. I also implemented transaction reversal logic with idempotency protection and an overloaded apply() method supporting partial withdrawals. Client code in Main.java verifies polymorphism and dynamic binding through upcasting and runtime method resolution.

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