Answer:
int getBalance()
Other names for the method would also work, of course.
Implementing the Method
The method returns the current balance, which is an int
so the return type is int.
The method does not need any input data,
so its parameter list is empty.
The two parentheses () are needed, even though there
is nothing inside of them.
So far, the class looks like this:
All getBalance() needs is a statement that returns the
balance of the checking account.
QUESTION 12:
Complete the method by filling in the blank.