Multiple Choice
We want to change the BankAccount class so that all accounts will have a monthly fee.The instance variable monthlyFee will hold the monthly fee.Which of the following methods deducts the value of the monthly fee from the account?
A) public void chargefee()
{
balance = balance - monthlyFee;
}
B) public void chargefee()
{
initialBalance = initialBalance - monthlyFee;
}
C) public void chargeFee()
{
balance = monthlyFee;
}
D) public void chargefee()
{
balance - monthlyFee;
}
Correct Answer:

Verified
Correct Answer:
Verified
Q71: The public constructors and methods of a
Q72: We want to change the BankAccount class
Q73: What mechanism does an object use to
Q74: We want to change the BankAccount class
Q75: Which of the following corresponds to the
Q77: When are instance variables initialized?<br>A)Instance variables are
Q78: Which part of a class implementation contains
Q79: Which term means the process of hiding
Q80: Instance variables that are object references are
Q81: A method header consists of which of