-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexp54.py
More file actions
36 lines (30 loc) · 732 Bytes
/
exp54.py
File metadata and controls
36 lines (30 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#59/#55
class A:
def __init__(self):
print("in A Init")
def feature1(self):
#print("Feature 1 working")
print("Feature 1-A working")
def feature2(self):
print("Feature 2 working")
#class B(A):
class B:
def __init__(self):
#super().__init__()
print("in B Init")
def feature1(self):
print("Feature 1-B working")
def feature4(self):
print("Feature 4 working")
class C(A,B):
def __init__(self):
super().__init__()
print("in C Init")
#def feature5(self):
# print("Feature 5 working")
def feat(self):
super().feature2()
a=C()
a.feature1()
a.feat()
hamkf;kcmcmcmdk