diff --git a/language/oop5/visibility.xml b/language/oop5/visibility.xml
index 95b0b1a5e9..d5678ca501 100644
--- a/language/oop5/visibility.xml
+++ b/language/oop5/visibility.xml
@@ -8,9 +8,9 @@
protected or
private. Class members declared public can be
accessed everywhere. Members declared protected can be accessed
- only within the class itself and by inherited and parent
- classes. Members declared as private may only be accessed by the
- class that defines the member.
+ only within the class itself and by inherited classes. Members
+ declared as private may only be accessed by the class that defines
+ the member.
@@ -178,7 +178,7 @@ class Foo extends Bar
}
}
-$myFoo = new Foo();
+$myFoo = new foo();
$myFoo->test(); // Bar::testPrivate
// Foo::testPublic
?>