P

Priyanka Tomar • 35.28K Points
Coach

Q. What is true about protected constructor?

  • (A) Protected constructor can be called directly
  • (B) Protected constructor can only be called using super()
  • (C) Protected constructor can be used outside package
  • (D) protected constructor can be instantiated even if child is in a different package
  • Correct Answer - Option(B)
  • Views: 95
  • 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.


Question analytics