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.
1.3k
0
Do you find this helpful?
11

View all MCQs in

Java Programming

Discussion

No comments yet