Bird
0
0

Why does Python support multiple inheritance?

easy📝 Conceptual Q11 of 15
Python - Multiple Inheritance and Method Resolution
Why does Python support multiple inheritance?
ATo allow a class to inherit features from more than one parent class
BTo make code run faster
CTo prevent any class from having methods
DTo force all classes to have the same methods
Step-by-Step Solution
Solution:
  1. Step 1: Understand inheritance basics

    Inheritance lets a class use methods and properties from a parent class.
  2. Step 2: Recognize multiple inheritance purpose

    Multiple inheritance allows a class to get features from more than one parent, combining abilities without rewriting code.
  3. Final Answer:

    To allow a class to inherit features from more than one parent class -> Option A
  4. Quick Check:

    Multiple inheritance = inherit from multiple parents [OK]
Quick Trick: Multiple inheritance means many parents, many features [OK]
Common Mistakes:
  • Thinking it makes code faster
  • Believing it removes methods
  • Assuming all classes become identical

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Python Quizzes