public function __toString() { return "Se ha creado figura " . $this->getNumFiguras() . " de tipo rectangulo: " . parent::__toString() . ", Alto= " . $this->alto; }