Okay, we now have a dog named Fluffy, which is just one instance of > our dog class. With the way you would want to do things, I would have > to say > bark(f) > But what is bark? Where is it defined? You can see it is in the dog > class, but Python cannot; you passed a dog instance to bark(), but > that will not tell Python to search in the dog class to find the bark > method. Saying > f.bark() > will work since it tells Python: > take this instance of dog, called f, and call its bark method. The > bark method is in the dog class since bark is being called on a dog > object (remember that an object is just an instance of a class). > I hope this made some sense. <http://www.facebook.com/mehgcap>
This is terrific --- very clarifying. Thank you so much. Mike
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor