Vidyalelo
Java Programming · Q15

Inheritence

Programming · Java Programming · question 15

Q15

In Java, can a subclass inherit private constructors from its superclass?

A.
Yes, constructors are inherited like other methods
B.
Only if the subclass is marked as "final"
C.
No, constructors are not inherited, especially private constructors
Answer
D.
Only if the superclass is marked as "static"

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board