A

Admin • 828.03K Points
Coach

Q. Which PHP feature allows dependency injection?

  • (A) Traits
  • (B) Type hinting
  • (C) Namespaces
  • (D) Autoloading
  • Correct Answer - Option(B)
  • Views: 2
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin
Type hinting helps inject dependencies.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.