Home Tutorials Python OOP Concepts Single Inheritance
Single Inheritance

Single Inheritance


13. Single Inheritance

Single inheritance means one child class inherits from one parent class. This is the simplest inheritance form in Python.

Syntax

class B(A):
    pass

Example

class Father:
    def skill(self):
        print("Gardening")

class Son(Father):
    pass

s = Son()
s.skill()

Output

Gardening
Example

🏋️ Test Yourself With Exercises

Take our quiz on Single Inheritance to test your knowledge.

Browse Quizzes »