Skip to content

feat: implement bank account system with audit logging and support fo… #528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

bryanasb251
Copy link
Contributor

Not finished still working on it.... can I get my extension please?

Copy link
Contributor

@anthonydmays anthonydmays left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep going, you're headed in the right direction.


// Method to add a value to an existing ArrayList or create a new one if accountNumber doesn't
// exist
public void addToMap(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is weird. Maybe do some research on how to build a logger object. No too difficult to make a simple one.

import java.util.HashSet;
import java.util.Set;

public abstract class BankAccount {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of building your own BankAccount class from scratch, you could take the logic from CheckingAccount.

@@ -128,4 +132,19 @@ public String toString() {
+ isActive
+ '}';
}
@Override
public void withdraw(double amount) throws InsufficientFundsException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should all be in the superclass since these are good checks for all accounts, no matter the type.

this.isBusiness = isBusiness;
}

public boolean isBusiness() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@bryanasb251
Copy link
Contributor Author

I tried... Ant don't cook me... Remember you said "perfect is the enemy of good."

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.

2 participants