0
Inheritance Python Question
What is the result of this code? class A: def method(self): print(1) class B(A): def method(self): print(2) B().method()
2 odpowiedzi
+ 3
The B class inherits class A but overrides the method method()
It's answer is 2
0
answer is 2