Bird
0
0

Which statement best describes inheritance in Python?

easy📝 Conceptual Q2 of 15
Python - Inheritance and Code Reuse
Which statement best describes inheritance in Python?
AInheritance is used to create unrelated classes.
BA child class can access and extend the features of a parent class.
CInheritance removes the need for functions in a program.
DA parent class can access the private methods of a child class.
Step-by-Step Solution
Solution:
  1. Step 1: Recall inheritance direction

    Inheritance flows from parent to child, so child can use and add features.
  2. Step 2: Evaluate options

    Only the child class can extend parent features; parents cannot access child's private methods.
  3. Final Answer:

    A child class can access and extend the features of a parent class. -> Option B
  4. Quick Check:

    Inheritance direction = Parent to child [OK]
Quick Trick: Child classes inherit and can add new features [OK]
Common Mistakes:
  • Confusing parent and child access
  • Thinking inheritance removes functions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Python Quizzes