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

Python Object-Oriented Python Instant Objects Methods

HELP ME

I am a Little confused with instances in object-oriented programming in python.

nakalkucing
nakalkucing
12,964 Points

Hi Muhammad Umar! I'd like to help. But, what part of instances are you having trouble understanding or is it just instances as a whole? Do you not understand what an instance is? If you can explain, I'd like to try to help. :)

1 Answer

Steven Parker
Steven Parker
231,269 Points

It helped me at first to think of a class as a "blueprint". It is the description and specifications about how a certain thing should be, but it's not one in itself.

An "instance" is what you get when you make one of the things the blueprint describes. You can have several instances, and they will all be similar because they were made from the same blueprint (class).

If that doesn't help, or isn't what you were asking about, please expand on your question a bit.

And happy coding!