A

Admin • 832.27K Points
Coach

Q. Which of the following can be used to instantiate an object in PHP supposing class name to be MyClass?

  • (A) $obj = new $MyClass;
  • (B) $obj = new MyClass;
  • (C) $obj = new MyClass();
  • (D) obj = new MyClass();
  • Correct Answer - Option(C)
  • Views: 18
  • Filed under category PHP
  • Hashtags:

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.