Re: php5 and object
| From: | Gabor Hojtsy | Date: | Wed, 28 Jul 2004 21:12:49 +0000 |
| Subject: | Re: php5 and object | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969362343@lists.php.net to get a copy of this message | ||
Please ask support questions at php-general@lists.php.net
Regards,
Gabor Hojtsy
Krzysztof Gorzelak írta:
Hello, I'm trying to make this code to work: // start of code abstract class Strona {abstract public function generuj_strone(); function foo() { generuj_strone(); }} class Katalog extends Strona {public function generuj_strone() { echo "OK"; }} $bar = new Katalog(); $bar->foo(); // end of code And I get such error : Fatal error: Cannot call abstract method Strona::generuj_strone() in .... And I expect word: OK Is it a bug or a normal behaviour ? Thanks for help! Krzysztof Gorzelak krzysztof@uno.pl