Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd2f7126

Browse files
author
roesnera
committed
Revises instructions on withdraw and deposit methods
1 parent0a60553 commitd2f7126

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 aboutcustomizing 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)

[8]ページ先頭

©2009-2025 Movatter.jp