Object Oriented Programming (Course 1)
Using Objects
  Start your All-Access Pass to unlock this challenge
Buy Access Login

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

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.