<?php
final class final_example {
function foobar() { /* ... */ }
}
/* You can't do this, final_example is declared final */
class tester extends final_example {
function foobar() { /* ... */ }
}
?>
<?php
class finalfunc {
final function dosomething() { /* ... */ }
function foobar() { /* ... */ }
}
class anotherclass extends finalfunc {
function foobar() { /* something more */ }
/* This can't work, dosomething() is 'final' */
function dosomething() { /* This breaks */ }
}
?>