|
PHP5中文手册
Final KeywordPHP 5 introduces the final keyword, which 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. Example#1 Final methods example
<?php Example#2 Final class example
<?php |