Skip to content

Add RemoveAccount class to support account deletion by account number#5

Open
DenizKenanEk wants to merge 1 commit into
masterfrom
denizEk-Branch
Open

Add RemoveAccount class to support account deletion by account number#5
DenizKenanEk wants to merge 1 commit into
masterfrom
denizEk-Branch

Conversation

@DenizKenanEk

Copy link
Copy Markdown

This pull request introduces a new class RemoveAccount under the Bank package, which provides functionality to delete a bank account using its account number.
Reads the current account data from the file using FileIO.Read().
Iterates through the BankAccount[] array to find a match with the given account number.
If a match is found, the corresponding array element is set to null, effectively removing the account.
Updates the account list and writes it back to the file using FileIO.Write().
Outputs a success or failure message to the console.

This feature improves the system’s account management capabilities by allowing administrators to remove obsolete or unwanted bank accounts from the system.

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