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

Objects in PHP Forum

View Course

1154 points
1b47ee7299894baf39221b0dd4336164?s=140&d=retro
Submitted by
Luke Jones
almost 2 years ago

Help with 7/10 in objects ?

Hello :)

Can Someone help me with 7/10 in objects please ? :) I still dont understand objects :/


0 votes

permalink

Go back 1 step and see how it goes. Also you should study more step 6 if you want to advance further.

P.S. here is code if you have trouble

class Dog
        {
            public $numLegs = 4;
            public $name;

            public function __construct($name)
            {
                $this->name = $name;
            }
        }

279 points
74b6d8a526d0bbb23634b8afa3fe263a?s=140&d=retro
Submitted by
zuzy
almost 2 years ago

1 Comment

1b47ee7299894baf39221b0dd4336164?s=140&d=retro Luke Jones almost 2 years ago

thanks a lot :)