Python - Class
Class tutorial
HOME
Python
Class
Introduction
The tutorial for Class are organized in the following chapters.
Class
Class Creation
Topic:8
Class Methods
Example:3 Topic:3
Class String Representation
Subclass Creation
Quiz:2 Topic:8
Class Attributes
Topic:2
Class Operator Overloading Methods
Constructors method __init__
Subtraction method:__sub__
Indexing: __getitem__ and __setitem__
Slicing and Indexing in Python 2.X
Integer value:__index__
Index Iteration: __getitem__
Iterable Objects: __iter__ and __next__
Membership: __contains__, __iter__, and __getitem__
Attribute Access: __getattr__ and __setattr__
Topic:3
String Representation: __repr__ and __str__
Right-Side and In-Place Add: __iadd__
Topic:4
Call Expressions: __call__
Comparisons: __lt__, __gt__
__cmp__ Method
Boolean Tests: __bool__ and __len__
Object Destruction: __del__