Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 8 Online
OpenStudy (anonymous):

Hi, I'm on Lecture 11. Can anyone explain a little about _init_(self) for me? Thanks

OpenStudy (e.mccormick):

It is a class constructor. In short, the way to get an object built when it is called. http://www.tutorialspoint.com/python/python_classes_objects.htm http://www.diveintopython.net/object_oriented_framework/defining_classes.html

OpenStudy (anonymous):

when a class object is instantiated the __init__ method is called. http://docs.python.org/2/reference/datamodel.html#object.__init__ http://effbot.org/pyref/__init__.htm 9.3.2 of http://docs.python.org/2/tutorial/classes.html#classes but it is probably worthwhile to start at the beginning of section 9

OpenStudy (anonymous):

thanks a lot... started going through the pages

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!