Does PHP support function overwrite in the class inheritance?
for example:
class A { function One() { } }
class B extends A { function One() { } }
Does function One in class B overwrites function One in Class A?
Thank you
well i guess it does ...
after i tried the following code:
<?
class a { function print_() { print "CLASS A"; } }
class b extends a {
function print_() { print "CLASS B"; }
}
// main $object = new b; $object->print_(); ?>