diff --git a/python-temel/taban_ve_turemis.3.py b/python-temel/taban_ve_turemis.3.py new file mode 100644 index 0000000..4c40ca5 --- /dev/null +++ b/python-temel/taban_ve_turemis.3.py @@ -0,0 +1,11 @@ +class A: + def foo(self): + print('A.foo') + +class B(A): + def foo(self): + print('B.foo') + +b = B() +A.foo(b) # A.foo çağrılır +super(B, b).foo() # A.foo çağrılır