From 461f6c292b663b8e6eeb4c2a09c1e4cd6a88319b Mon Sep 17 00:00:00 2001 From: Curt Zirzow Date: Sat, 7 Aug 2004 18:11:34 +0000 Subject: [PATCH] Implenting method must be equal or weaker to abstract signature. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@165669 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/abstract.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/language/oop5/abstract.xml b/language/oop5/abstract.xml index d5c336951d..e06ca85549 100644 --- a/language/oop5/abstract.xml +++ b/language/oop5/abstract.xml @@ -1,5 +1,5 @@ - + Object Abstraction @@ -11,6 +11,13 @@ define the implementation. + + The class that implements the abstract method must define with the same + visibillity or weaker. If the + abstract method is defined as protected, the function implenetation must be + defined as either protected or public. + + Abstract class example @@ -59,7 +66,6 @@ $class2->print(); Old code that has no user-defined classes or functions named 'abstract' should run without modifications. -