Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Object-Oriented PHP Basics (Retired) Classes and Objects Creating a Class and Defining an Object

Justen F
Justen F
276 Points

Challenge task 2 of the OOP / php course isn't covered by the training material that precedes it.

The task asks us to "create an object named bluegill"

2 Answers

Logan R
Logan R
22,989 Points

I had trouble with getting that at first too. Creating an object is very simple. He talks about it at ~1:10.

$bluegill = new Fish();
Justen F
Justen F
276 Points

Indeed. Mostly pointing out here that the quiz is covering something that isn't explicitly discussed in the training material (yet).