Thanks for tips David! I'll play with your suggestion.
I've never used abstract methods, but if I'm understanding the code
you posted, they look pretty useful.
I may be back with questions.
Appreciate the help. :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://
There's no way to bypass an overridden method using "parent", but you could
add an abstract method that Child would implement.
class Parent
function __construct() {
$this->foo = $this->getFoo();
}
abstract function getFoo();
}
David
2 matches
Mail list logo