P

Priyanka Tomar • 35.28K Points
Coach

Q. 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
  • (D) Only if the superclass is marked as "static"
  • Correct Answer - Option(C)
  • Views: 18
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics