Python · OOP: Classes & Inheritance
What does this print? ``` class A: def __init__(self): self.x = 1337 def m(self): print(self.x) class B(A): def __init__(self): self.y = 10000 B().m() ```
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
