Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ConstructorBehaviourInInheritance
#python 3.5.2 #contructor behaviour in inheritance class A: def f1(self): print('f1-A working') def __init__(self): print('init-A working') def f3(self): print('f3-A working') class B(A): def f2(self): print('f2-B working') super().f3() def __init__(self): super().__init__() print('init-B working') a=A() a.f1() b=B() b.f1() b.f2() #Note super() method is used to access parent class methods from sub class
run
|
edit
|
history
|
help
0
Game4
Ваня и забор
BUCLE FOR EN PYTHON 3
validation
linked_lists
What regex will match these lines?
aaa
Contact Class
chickens,cows,pigs
Add missing person