class A(object): def __init__(self): self.x = 1 class B(object): def __init__(self): self.y = 2 class C(A, B): pass print(C().y)
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 12, in <module> AttributeError: 'C' object has no attribute 'y'