Python Language Tutorial => Classes
Introduction
Python offers itself not only as a popular scripting language, but also supports the object-oriented programming paradigm. Classes describe data and provide methods to manipulate that data, all encompassed under a single object. Furthermore, classes allow for abstraction by separating concrete implementation details from abstract representations of data.
Code utilizing classes is generally easier to read, understand, and maintain.
- Introduction to classes
- Basic inheritance
- Bound, unbound, and static methods
- Class and instance variables
- Class composition
- Class methods: alternate initializers
- Default values for instance variables
- Descriptors and Dotted Lookups
- Listing All Class Members
- Monkey Patching
- Multiple Inheritance
- New-style vs. old-style classes
- Properties
- Singleton class