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. -