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
Fu 1
H.W.5 ALL Solutions
Bisection method
GMK output
Calender 2019
add function
sheru
Game4
9th jan
Ej2_PYTHON_203700377.