Start your All-Access Pass to unlock this challenge
Challenge 1 / 1
Imagine you're commanding a spaceship and have a class called Captain
stored in Captain.php
. This class has a public property $name
.
From inside index.php
, how can we instantiate a new Captain
object?
Skip challenges and go to theNext Chapter