Skip to content

Commit d2f7126

Browse files
author
roesnera
committed
Revises instructions on withdraw and deposit methods
1 parent 0a60553 commit d2f7126

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/com/example/bankaccount/BankAccount.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ Class methods(return types):
4848
2. depending on accountType:
4949
calculate transaction fee of $1.50 (checking only)
5050
calculate interest of 1% on withdrawn amount (savings only)
51-
3. check balance
52-
4. return true if successful
51+
3. check balance, do not allow for overdrafting
52+
4. update balance
53+
5. return true if successful
5354
otherwise, return false
5455
*/
5556

@@ -58,8 +59,8 @@ Class methods(return types):
5859
Here you should write your deposit method
5960
requirements:
6061
1. no negatives as input
61-
2. do not allow for overdrafting
62-
3. return true if successful
62+
3. update balance
63+
2. return true if successful
6364
otherwise, return false
6465
*/
6566

0 commit comments

Comments
 (0)