![]() |
Function overwriting
Is it possible(maybe in php future) that when you extend a class that you can disable function overwriting or does it apply to the final class php5 uses?
Code:
class xCode:
$cls = new y(); |
If the function in the parent didn't have the
final keyword attached to it then it would echo out main2. However, as you've applied the final keyword, then a fatal PHP error will be evoked.Quote:
|
| All times are GMT. The time now is 05:45 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0