See All Titles |
![]() ![]() Object-Oriented ProgrammingPython uses the traditional class architecture for object-oriented programming (OOP). The object-oriented model adopted by Python
Object-oriented programming promotes data abstraction, information hiding, encapsulation, and modular programming. Saying that OOP promotes data abstraction means that we define the functions that operate on the data. The ideal scenario provides encapsulated data that can be accessible only through the class methods. However, in Python, we cannot totally block the programmer from accessing the information that is stored inside a class. Encapsulation, Inheritance, and Polymorphism are the most important thoughts provided by OOP. Python doesn't strictly follow the standard concepts, but you will see how far it goes.
|
Index terms contained in this sectionobject-oriented programming (OOP)programming object-oriented (OOP) |
© 2002, O'Reilly & Associates, Inc. |