A

Admin • 832.27K Points
Coach

Q. Why is constructor private?

  • (A) To restrict usage
  • (B) To enforce static factory methods
  • (C) To improve performance
  • (D) To avoid inheritance
  • Correct Answer - Option(B)
  • Views: 5
  • Filed under category Trishul API
  • Hashtags:

Explanation by: Admin

Ensures creation via json() or other static methods.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.