Start your All-Access Pass to unlock this challenge
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