Simple question about PHP4 inheritance
Posted: Tue May 02, 2006 11:29 am
Code: Select all
<?php
class foo {
function zim() {
echo 'foo';
}
}
class bar extends foo {
function zim() {
echo 'bar';
}
}
$a = new bar();
$a->zim();
?>Can anyone tell me?
The manual seems to be somewhat incomplete on the issue of PHP 4 inhertiance and function overriding.
Thanks