From 841c3eea37ec42d4f7c86891643f538a7d6e0e25 Mon Sep 17 00:00:00 2001 From: Etienne Kneuss Date: Wed, 6 Sep 2006 11:57:23 +0000 Subject: [PATCH] Fix the 'instance of an object' git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@219464 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/basic.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/language/oop5/basic.xml b/language/oop5/basic.xml index bbbfb35852..7d8033353f 100644 --- a/language/oop5/basic.xml +++ b/language/oop5/basic.xml @@ -1,5 +1,5 @@ - + The Basics @@ -127,7 +127,7 @@ EOD; new - To create an instance of an object, a new object must be created and + 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 constructor defined that throws an @@ -144,9 +144,9 @@ $instance = new SimpleClass(); - When assigning an already created instance of an object to a new variable, the new variable + When assigning an already created instance of a class to a new variable, the new variable will access the same instance as the object that was assigned. This - behaviour is the same when passing instances to a function. A new instance + behaviour is the same when passing instances to a function. A copy of an already created object can be made by cloning it.