Data Structures and Algorithms with Object-Oriented Design Patterns in Python
next up previous index

Classes

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.


next up previous index

Bruno Copyright © 2003, 2004 by Bruno R. Preiss, P.Eng. All rights reserved.