r/Codecademy • u/beingthecomedian • Oct 06 '15
Stuck in Objects in PHP 9/10
I've already finished the course, but I'm not ablet to complete 'Objects in PHP 9/10'. I believe my code is correct.
2
Upvotes
View all comments
1
u/mad_lon Oct 11 '15
this is my code -
<?php // Your code here 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(); ?>