Multilevel Inheritance

Mon 10 August 2026
class Grandparent:
    def feature(self):
        print("Grandparent feature")

class Parent(Grandparent):
    pass

class Child(Parent):
    pass

c = Child()
c.feature()
Grandparent feature


Score: 10

Category: chapter2_inheritance