|
Data Structures and Algorithms
with Object-Oriented Design Patterns in Python |
A Python class encapsulates a set of values and a set of operations. The values and the operations of a class are represented by the attributes of the class. In Python a class definition introduces a new type. The instances of a class type are called objects.