Page 231 - AP Computer Science A, 7th edition
P. 231

(A) IIonly
(B) IandIIonly (C) IIandIIIonly (D) IIIonly
(E) I, II, and III
3. Which is a correct implementation of the constructor with parameters in the SavingsAccount class?
(A)
(B)
(C)
(D)
(E)
balance = acctBalance; interestRate = rate;
getBalance() = acctBalance; interestRate = rate;
super(); interestRate = rate;
super(acctBalance); interestRate = rate;
super(acctBalance, rate);
4. Which is a correct implementation of the CheckingAccount constructor?
I super(acctBalance);
II super(); deposit(acctBalance);
III deposit(acctBalance); (A) Ionly
(B) IIonly
(C) IIIonly















































































   229   230   231   232   233