Single Inheritance
Mon 10 August 2026
class Parent:
def show(self):
print("This is the parent class")
class Child(Parent):
pass
c = Child()
c.show()
This is the parent class
Score: 10
Category: chapter2_inheritance
class Parent:
def show(self):
print("This is the parent class")
class Child(Parent):
pass
c = Child()
c.show()
This is the parent class
Score: 10
Category: chapter2_inheritance