Start your All-Access Pass to unlock this challenge
Challenge 1 / 1
You were hired to create a Star Wars-themed game, and you've started with a class named Starship
with two methods: powerUp()
and fireWeapon()
. You've instantiated an object of that class called $millenniumFalcon
. How would you use these methods to power up the Starship and fire its weapons?
Skip challenges and go to theNext Chapter