02-27-2008, 06:37 PM
|
#2 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
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:
|
Fatal error: Cannot override final method x::base() in C:\wamp\www\f.php on line 16
|
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|