Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
oorrja
GitHub Repository: oorrja/learntosolveit
Path: blob/master/languages/python/design_inheritance.py
1240 views
1
class A(object):
2
def __init__(self):
3
print("A is called.")
4
5
class B(object):
6
def __init__(self):
7
print("B is called.")
8
9
class C(A, B):
10
def __init__(self):
11
super(C, self).__init__()
12
13
c = C()
14
15