Sr. PHP Programmer Question:

What is the use of final keyword in PHP?

Tweet Share WhatsApp

Answer:

PHP 5 introduces the final keyword, which prevents child classes from overriding a method by prefixing the definition with final. If the class itself is being defined final then it cannot be extended.

Download Senior PHP Programmer PDF Read All 202 Senior PHP Programmer Questions
Previous QuestionNext Question
What is mean by an associative array?How to create a text file in php?