A

Admin • 833K Points
Coach

Q. What does the keyword 'final' mean in a class method?

  • (A) The method cannot be overridden
  • (B) The method is optional
  • (C) The method is abstract
  • (D) The method must return a value
  • Correct Answer - Option(A)
  • Views: 14
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

The final keyword prevents the method from being overridden in subclasses.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.