diff --git a/language/oop5/visibility.xml b/language/oop5/visibility.xml index a514c61611..8287c6fa73 100644 --- a/language/oop5/visibility.xml +++ b/language/oop5/visibility.xml @@ -55,7 +55,7 @@ $obj->printHello(); // Shows Public, Protected and Private */ class MyClass2 extends MyClass { - // We can redeclare the public and protected method, but not private + // We can redeclare the public and protected properties, but not private public $public = 'Public2'; protected $protected = 'Protected2';