diff --git a/language/oop.xml b/language/oop.xml index a3457c1b91..5905dcf90f 100644 --- a/language/oop.xml +++ b/language/oop.xml @@ -1,5 +1,5 @@ - + Classes and Objects @@ -241,7 +241,7 @@ $cart->$myvar = array("10" => 1); has all variables and functions of the base class (this is called 'inheritance' despite the fact that nobody died) and what you add in the extended definition. It is not possible to - substract from a class, that is, to undefine any existing + subtract from a class, that is, to undefine any existing functions or variables. An extended class is always dependent on a single base class, that is, multiple inheritance is not supported. Classes are extended using the keyword 'extends'.