diff --git a/language/oop5/basic.xml b/language/oop5/basic.xml index ea870323c7..f185089a65 100644 --- a/language/oop5/basic.xml +++ b/language/oop5/basic.xml @@ -111,14 +111,19 @@ $this is not defined. new - To create an instance of a class, a new object must be created and - assigned to a variable. An object will always be assigned when - creating a new object unless the object has a + To create an instance of a class, the new keyword must + be used. An object will always be created when unless the object has a constructor defined that throws an exception on error. Classes should be defined before instantiation (and in some cases this is a requirement). + + If a string containing the name of a class is used with + new, a new instance of that class will be created. If + the class is in a namespace, its fully qualified name must be used when + doing this. + Creating an instance