Skip to content

Conversation

@phnsh
Copy link
Owner

@phnsh phnsh commented Jun 19, 2019

Java Code for Week 3 Assignment 1

// 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;
Copy link
Collaborator

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 {
Copy link
Collaborator

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) {
Copy link
Collaborator

@fullstackgl fullstackgl Jun 28, 2019

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.

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.

3 participants