diff --git a/language/oop5/variance.xml b/language/oop5/variance.xml index d2ab69407c..9890ef9332 100644 --- a/language/oop5/variance.xml +++ b/language/oop5/variance.xml @@ -161,7 +161,7 @@ abstract class Animal class Dog extends Animal { public function eat(Food $food) { - echo $this->name . " nom noms " . get_class($food); + echo $this->name . " eats " . get_class($food); } } ]]>