Python Institute PCPP-32-101 Question Answer
What is wrong with the following snippet?
class A:
def run(self):
print("A is running")
class B(A):
def run(self):
print("B is running")
class C(A, B):
def fly(self):
print("C is flying")
c = C()
Python Institute PCPP-32-101 Question Answer
What is wrong with the following snippet?
class A:
def run(self):
print("A is running")
class B(A):
def run(self):
print("B is running")
class C(A, B):
def fly(self):
print("C is flying")
c = C()