

McqMate
Q. |
Suppose A is an abstract class ,B is a concrete subclass of A, and both A and B have an default constructor. Which of the following is correct? a) A a = new A(); b)A a = new B(); c) B b = new A(); d) B b = new B(); |
A. | Both a & b. |
B. | Both b & d. |
C. | Both b & c. |
D. | Both a & c. |
Answer» B. Both b & d. |
View all MCQs in
Java ProgrammingNo comments yet