A

Admin • 828.03K Points
Coach

Q. What does the 'final' keyword do in a PHP method?

  • (A) Prevents overriding in child classes
  • (B) Forces a method to be static
  • (C) Automatically makes it private
  • (D) Executes the method last
  • Correct Answer - Option(A)
  • Views: 4
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin
The 'final' keyword prevents a method from being overridden in a subclass.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.