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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.