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 Classes and Objects

Don Shipley
Don Shipley
19,488 Points

OOP Quiz question 3 of 7

A ________ is what we call a function inside of a class. I am confused.... From php.net A class may contain its own constants, variables (called "properties"), and functions (called "methods"). Yet methods fails/

4 Answers

Aaron Graham
Aaron Graham
18,033 Points

Try method without the 's'. Some of these questions are really picky...

Don Shipley
Don Shipley
19,488 Points

I did several times failed. than passed with method. failed using method so looked it up on php.net tried methods failed than put in method again passed... And yes these test question can be to picky.. If I get it wrong show me where to study so I can learn to pass.... Thank you Aaron for your reply

"If I get it wrong show me where to study so I can learn to pass" <--- Second that!

You got the basic answer right and got caught in the wonderful (yet annoying) technicalities of the English language.

'Function' is singular, so the answer is 'method' (singular too).

toy Ade
toy Ade
789 Points

the answer is method