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

iOS Build a Blog Reader iPhone App Exploring the Master-Detail Template Modifying The Master-Detail Template

3 Answers

Exactly as you've typed. You can access the various properties and methods within an instance of a class by using the dot separator with the instance's name at the beginning.

A class is the template from which you can create instances, i.e. identical versions of the class.

So you can have a class of type "House" which has properties like "street number" and "number of windows". Each instance of the class of House can be different by setting those properties accordingly. You can then access those properties using dot notation. Like, myHouse.streetNumber will give you the street number of the instance of House called myHouse.

I tried to make sense!!! ...

Shaun Kelly
Shaun Kelly
5,648 Points

Okay and what is an instance ? and also a class ?