class inheretence of a attribute which is itself a class
- by alex
i have a class which inherets a attribute from a super-class. this attribute is a class itself.
class classA(superClass):
def func(self,x):
if self.attributeB is None:
do somthing
and in the other class i have
class superClass:
self.attributB = classB()
i get the error
AttributeError: class classA has no attribute 'attributeB'
…