INITIALIZING A CLASS INSTANCES
- instance initialization '__init__(self)' method - can
have parameters
class B:
title = None
def __init__(self, title=''):
self.title = title
def foo(self):
pass
b = B('hello')
print b.title
- the '__del__(self)' method can be used for cleanup