Multible-Inheritance
Wed 12 November 2025
class Father:
def skill(self):
print("Driving")
class Mother:
def skill(self):
print("Cooking")
class Child(Father, Mother):
pass
child = Child()
child.skill()
Driving
class GrandParent:
def display(self):
print("GrandParent Display")
class Parent(GrandParent):
pass
class Child(Parent):
pass
child = Child()
child.display()
GrandParent Display
Score: 0
Category: python-basics