PHP 5 introduces the final keyword. It 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.
class BaseClass {
public function test() {
echo “BaseClass::test() called\n”;
}
final public