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

Objects in PHP Forum

View Course » View Exercise

1175 points
A5ba1285e8142aa3740cc08378e41d6c?s=140&d=retro
Submitted by
Reianna-Bryant
about 2 years ago

My code passes, but with no results..

My code passes just fine like this:
**<?php
class Cat {
public $isAlive = true;
public $numLegs = 4;
public $name;
public function _construct($name) {
$this->name = $name;
}
public function _
meow() {
return "Meow meow";
}
}

      $cat1 = new Cat("CodeCat");

      echo $cat1->meow();
    ?>**

However, there is no result from the code shown in the result panel. Am I doing something wrong?