|
Posted by Ollie on 05/28/05 19:42
abstract class Foo {
final function __construct() {
}
abstract function init();
}
class Parser extends Foo {
function init() {
}
}
class CssParser extends Parser {
}
/*
in a code like the above, how can you force all the inherited classes to
implement a method like init() ?
*/
Navigation:
[Reply to this message]
|