What is the output of the following code:
class Parent:
def show(self):
print('Parent method')
class Child(Parent):
pass
obj = Child()
obj.show()
def show(self):
print('Parent method')
class Child(Parent):
pass
obj = Child()
obj.show()
What is the output of the following code:class Parent: Correct Answer Child method
def show(self):
print('Parent method')
class Child(Parent):
pass
obj = Child()
obj.show()
মোঃ আরিফুল ইসলাম
Feb 20, 2025