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

banner
Close banner
0 points
Submitted by temtion3
over 10 years

What is wrong with this code?

  <?php
    class Vehicle {
      public function honk() {
        return "HONK HONK!";
      }
    }
    // Add your code below!
    class Bicycle extends Vehicle{
       public funciton honk() {
          return "Beep beep!";
       }
    }
     $bicycle = new Bicycle();
     echo $bicycle->honk();
  ?>

Answer 526d35c8548c356e8e0042fe

5 votes

Permalink

check your spelling of function

points
Submitted by John Ryan McGill
over 10 years

1 comments

loveprruy over 10 years

line 9: funciton =function