diff --git a/language/oop5/visibility.xml b/language/oop5/visibility.xml index 78bde7effc..4a1ee73aca 100644 --- a/language/oop5/visibility.xml +++ b/language/oop5/visibility.xml @@ -1,13 +1,13 @@ - + Visibility - The visibility of a member or method can be defined by prefixing the - declaration with the keywords: public, protected or private. Public - declared items can be allow access to any caller. Protected limits access - access to only classes inherited. Protected limits visiblity only to the - class that defines the item. + The visibility of a property or method can be defined by prefixing the + declaration with the keywords: public, protected or private. Public + declared items can be acessed everywhere. Protected limits access to + inherited classes (and to the class that defines the item). Private limits + visiblity only to the class that defines the item. Members Visibility @@ -74,8 +74,8 @@ $obj2->printHello(); The use PHP 4 use of declaring a variable with the keyword 'var' is no longer valid for PHP 5 objects. For compatiblity a variable declared - in php will be assumed with public visiblity, and a E_STRICT warning will - be issued. + in php will be assumed with public visiblity, and a + E_STRICT warning will be issued.