This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Hugo Cloudt
almost 10 years

Code won't pass.

This is my code:

class Bycicle extends Vehicle { public function honk() { return “Beep beep!”; } $bicycle = new Bicycle(); echo $bycicle-> honk(); }

But it says that there is no class named Bycicle, which is definetily there.

Answer 537385af9c4e9d5f510000da

0 votes

Permalink

i think you put the closing curly bracket in the wrong place, it should look like this

class Bycicle extends Vehicle { public function honk() { return “Beep beep!”; }} $bicycle = new Bicycle(); echo $bycicle-> honk();

points
Submitted by Tylwyth
almost 10 years

1 comments

HOLLY almost 10 years

and have to write bicycle correctly