Solved

Consider the Following Class Declaration: Public Class SavingsAccount Extends BankAccount

Question 31

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) ArrayList<SavingsAccount> extends ArrayList<BankAccount>.
D) There is no relationship between ArrayList<BankAccount> and ArrayList<SavingsAccount>

Correct Answer:

verifed

Verified

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

Related Questions