Solved

We Want to Change the BankAccount Class So That All

Question 39

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents