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 trialKhanh Dao
641 PointsCan anyone explain to me what is a object and a instance?
What is a object and a instance?
Thank You!
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! Let's say for example that you own a construction business and you have a contract to build forty houses. The object would be the blueprints for the house. The properties would be the dimensions, color, address etc. Each separate house that you build is an instance. They aren't all the same house. Each instance of this house gets its own address, and maybe customer A wants their house white while customer B wants their house brown. So using this blueprint and creating a new instance of the house we can create something that is very similar, but distinct from the one before it.
Hope this helps!
Dinu Comendant
6,049 PointsDinu Comendant
6,049 PointsThank you! I wish every Treehouse teacher could explain everything in this simple manner.