Re: Re: PHP5 OOP: Abstract classes, multiple inheritance and constructors
| From: | David Harkness | Date: | Fri, 21 Jun 2013 23:55:20 +0000 |
| Subject: | Re: Re: PHP5 OOP: Abstract classes, multiple inheritance and constructors | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321451@lists.php.net to get a copy of this message | ||
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