Solved

We Want to Change the BankAccount Class So That All

Question 76

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions