¡@

Home 

python Programming Glossary: fido

Why do we use __init__ in python classes?

http://stackoverflow.com/questions/8609153/why-do-we-use-init-in-python-classes

self legs colour self.legs legs self.colour colour fido Dog 4 brown spot Dog 3 mostly yellow You're saying Fido is a.. we can have plenty colour variables on different dogs . So fido.colour is one variable but spot.colour is another. The first.. The first one is bound to the object within the variable fido the second spot . Now when you call Dog 4 brown or three.add..