-
Notifications
You must be signed in to change notification settings - Fork 0
Week 3 Assignment 1 #4
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
base: master
Are you sure you want to change the base?
Conversation
| // maintain 10000 rupees whereas Salaried account holders can maintain 0 balance. | ||
| // e. There should be a provision to update Nominee details but they cannot update account number and name. | ||
| // f. The address should contain FlatNo, Street, City, State and pin code. | ||
| import java.util.Arrays; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every class should be in its own Java file, with a separate class for the client.
| abstract void getAccDetails(); | ||
| } | ||
|
|
||
| interface accountRules { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could have just been an abstract function inside the base class.
| } | ||
|
|
||
| @Override | ||
| public void withdrawFunc(double amount) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a fail message if the conditions are not met. Ditto for all the other conditions in the program.
Java Code for Week 3 Assignment 1