I can't figure out why my code isn't working. $bicycle is an instance of the bicycle class. https://www.codecademy.com/courses/web-beginner-en-bH5s3/0/4?curriculum_id=5124ef4c78d510dd89003eb8# It looks like $bicycle isn't an instance of the Bicycle class. Check the Hint if you need help!
Replace this line with your code.
Do you have the class name written like above, or Bicycle?
Please post your code. Thanks.
Do not wrap the echo in a conditional. Just declare the instance, then echo the method.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.