Object Oriented Programming (Course 1)
Type Hinting?!
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 1 / 1

Check out this sweet new function I created, which leverages a nifty Duck class:

function duckPerformance($duck) {
    $duck->quack();
    $duck->swim();
}

It works great - and the crowd loves our duck. But now, let's add a type to the argument:

function duckPerformance(Duck $duck) {
    $duck->quack();
    $duck->swim();
}

Which of the following is NOT true:

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.