What is the reason for why PHP5 does not allow creating an interface by extending a non "interfaced" class?

The follow code produces an error saying "CMAES_Section cannot implement CMAES_DB_Section - it is not an interface in <script>"

/Erik

abstract class CMAES_DB_row {
        public funtion bar {
        }
}

class CMAES_DB_Section extends CMAES_DB_row {
        public funtion foo {
        }
}

interface CMAES_Section extends CMAES_DB_Section {
    public function display();
    public function fetchBoards();
}

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to