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

Objects in PHP Forum

View Course

3108 points
5154c6cf115b457ac9000021_667301409
Submitted by
boring12345
about 2 years ago

Feedback

Hello,
what do you think about this course?
Which bugs did you encounter?
Anything else you want to tell me?
Please let me know your thoughts, as it will possibly help to improve this course. :-)


0 votes

permalink

👌

634 points
56763ba0b6254838bd000561_367683359
Submitted by
Valerie
about 2 years ago


0 votes

permalink

9/10 - accepts any answer as correct.

lass Cat {
        public $isAlive = true;
        public $numLegs = 4;
        public function __construct($name) {
        $this->name = $nameasd
        asdf
        public function meow();
        return "Meow meow";
        asdfasdfs
        }

    $cat1 = new Cat("CodeCat");

    echo $cat1->meow();
    }

381 points
Fb2b8ac5bb97873e95fa097cc6bdb9bf?s=140&d=retro
Submitted by
aaronto
about 2 years ago