Solved

We Want to Change the BankAccount Class So That All

Question 31

Multiple Choice

We want to change the BankAccount class so that all accounts will have a monthly fee. When a BankAccount is created, its monthly fee is set and cannot be changed. Which of the following will properly define the instance variable monthlyFee that holds the monthly fee?


A) monthlyFee: double;
B) instance var monthlyFee;
C) private double monthlyFee;
D) private field monthlyFee;

Correct Answer:

verifed

Verified

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

Related Questions