Re: [PHP] Re: PHP5 OOP: Abstract classes, multiple inheritance and constructors
[email protected] (David Harkness)
| Newsgroups | php.general |
|---|---|
| Message-ID | <CAO8qQLmCp74QgfOrnYxkajEBZxT3TVD7VudSBT3OGxMLJe2_7A@mail.gmail.com> |
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