Archive for May, 2006
PHP5 “final” Keyword
Posted on 19. May, 2006 by Will Fitch.
0
PHP5 has introduced many new features for object-oriented programming. One of those misunderstood, useful keywords is the ?final? keyword.
The final keyword allows us to do three things:
It prevents child classes from overriding a method
It prevents a class from being extended if the class is marked “final”
Serves as a reminder to future developers of your code [...]



