Linux/Unix > Python Essential Reference, Second Edition > 7. Classes and Object-Oriented Programming > Polymorphism | See All Titles

< BACK | Make Note | Bookmark | CONTINUE >

155117184014003188065099048180054212144238241179195140058238111161105086039029049015236074

### Polymorphism

Polymorphism, or dynamic binding, is handled entirely through the attribute lookup process described for inheritance in the preceding section.Whenever a method is accessed as `obj` `.``method` `()`, `method` is located by searching the `_ _dict_ _` attribute of the instance, the instance’s class definition, and base classes, in that order. The first match found is used as the method.

| Last updated on 3/28/2002 Python Essential Reference, Second Edition, © 2002 New Riders Publishing

< BACK | Make Note | Bookmark | CONTINUE >

© 2002, O'Reilly & Associates, Inc.