Solved

Consider the Following Class Declaration

Question 51

Multiple Choice

Consider the following class declaration:
public class SavingsAccount extends BankAccount
{ ...}
Which of the following statements about these classes is correct?


A) ArrayList<BankAccount> is a subclass of ArrayList<SavingsAccount>.
B) ArrayList<SavingsAccount> is a subclass of ArrayList<BankAccount>.
C) There is no relationship between ArrayList<BankAccount> and ArrayList<SavingsAccount>
D) ArrayList<SavingsAccount> extends ArrayList<BankAccount>.

Correct Answer:

verifed

Verified

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

Related Questions