0
0
Suppose A is an abstract class, B is a concrete subclass of A, and both A and B have a default constructor. Which of the following is correct?1. A a = new A();2. A a = new B();3. B b = new A();4. B b = new B();
Suppose A is an abstract class, B is a concrete subclass of A, and both A and B have a default constructor. Which of the following is correct?1. A a = new A();2. A a = new B();3. B b = new A();4. B b = new B();
A). 1 and 2
B). 3 and 4
C). 3 and 4
D). 1 and 3
E). 2 and 3
This Question has 1 answers.
2 and 4
Similar Questions
- Direction: There are nine members in a family. There are three married couple. A who is married to B does not have any son like G. G is the only sibling of I who is son in law of B. F is married to brother of H’s husband. G is father of E and D. A i
- In an alloy, zinc and copper are in the ratio 1 : 2. In the second alloy, the same elements are in the ratio 2 : 3. If these two alloys be mixed to form a new alloy in which two elements are in the ratio 5:8, the ratio of these two alloys in the new allow
- Nidhi received simple interest off Rs. 1200 when invested Rs x at 6% p.a. and Rs y at 5% p.a. for 1 year. Had she invested Rs. x at 3% p.a. and Rs. y at 8% for that year, she would have received simple interest of Rs 1,260. Find the values Rs. x an y.
- Are all the four friends viz. A, B, C and D who are sitting around a circular table, facing the centre? I) B sits second to right of D. D faces the centre. C sits to immediate right of both B and D. II) A sits to immediate left to B. C is not an immedia
- Direction: Read the following information carefully and answer the questions that follow: P, V, X, A, D, I, K and U set out for trip for different number of days such as 2, 8, 11, 5, 6, 4, 7 and 3, they go to the trip in the same order but the order of n