Nelle funzioni "area" e "perimetro" prova a sostituire

Codice PHP:
return $this->$c
con

Codice PHP:
return $c
e così

Codice PHP:
return $this->$e
con

Codice PHP:
return $e
Fammi sapere.