If an instance variable is not initialized in the
__init__() function, can it still be referenced by a class method?
Yes, the instance variable can be referenced by a class method using
self so long as it has been set before the call. If not, an
AttributeError will be generated. As a general rule, it is best to initialize all of the instance variables in the
__init__() function for consistency.