PHP final Keyword

PHP Keywords : Prevent inheritance of a class using the final keyword

Definition and Usage

The final keyword is used to prevent a class from being inherited and to prevent inherited method from being overridden.

Related Pages

Read more about inheritance in our PHP OOP - Inheritance Tutorial.

❮ PHP Keywords