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

Java Java Objects (Retired) Meet Objects Constructors

PezDispenser Objects Help?

I just had a quick question to help me grasp this concept. I just wanted to know in this program, is PezDispenser an object, class or type? There are so many PezDispensers in this program I just want to know what they are? Also, what is dispenser in this program? Finally, how do I post snippets of my code in a question?

1 Answer

Hi Kamran,

I have the answer for the last question, and will look into the others.

If you scroll down to the "Add an Answer", underneath note box there are some words (in bold) that say "Markdown Cheatsheet". If you click on the writing it will show you how to add your code.

I hope this helps, write back if you have a problem.