This forum is now read-only. Please use our new forums at

628 points
Submitted by
about 3 years ago

code let me pass but there's an error on the screen box

class Cat {
public $isAlive = true;
public $numLegs = 4;
public $name = ;
function public __construct($name) {
$this->name = $name;
public function meow(){
return "Meow meow";
$name = new Cat("CodeCat");
echo $meow


it says" Parse error: syntax error, unexpected ';' on line 13"

0 votes


I dont see a parse error on line 13 but I do notice that you left out a semicolon on the last line after echo $meow. I'm having the same problem except mine says line 11 and sometimes 17. Just try adding that semicolon and see if it works then.

343 points
Submitted by
about 3 years ago

0 votes


  1. you dont need the "="
  2. it should read public function __construct($name) you have it backwards
  3. you are missing a closing bracket and semi-colon, delete the one between public $name and public function__construct($name) and add at the end of the second pub function
  4. change echo $meow to echo $name->meow(); I hope this helps!!!

1054 points
Submitted by
Ashley Wilkerson
almost 3 years ago