<?php
class baz {
final function foo() {}
function bar() {}
}
// Works:
class foo2 extends baz {
function bar() {}
}
// Won't work:
class foo3 extends baz {
function foo() {}
}
// Implementing class must implement all methods
// specified in the abstract class
abstract class ab {
abstract public function test();
}
class imp_ab extends ab {
public function test() {
echo "implemented class was called";
}
}
?>