Multiple Choice
Consider the following method header for the BankAccount class: public void addInterest(double rate)
{
______________________________________
}
Fill in the blank in the method body.
A) balance = balance * (1 + rate) ;
B) balance = balance * rate;
C) balance = balance * (1 + interestRate) ;
D) balance = balance * interestRate;
Correct Answer:

Verified
Correct Answer:
Verified
Q8: When are local variables initialized?<br>A)Local variables are
Q34: Identify the explicit parameter of the withdraw
Q69: If the CarComponent class had the call
Q70: We want to create a class that
Q71: We want to create a class that
Q73: What does an object store its data
Q75: We want to create a class that
Q76: Choose the method header that goes with
Q79: Assume the method below has been added
Q80: Instance variables that are object references are