Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the 'final' keyword in PHP?
Answer: The 'final' keyword is used to prevent a class or method from being extended or overridden by other classes.

Example:

final class FinalClass { 
/* class definition */ 

final function finalMethod() { 
/* method definition */ 
}
Is it helpful? Yes No

Most helpful rated by users:

©2026 WithoutBook