Correct answer: A. A new class can be based on an existing class, gaining its attributes and methods
Explanation
Inheritance lets a new class be based on an existing class, automatically gaining its attributes and methods while adding or overriding others.
Practise 3 questions on this topic
Take Python OOP — Timed Test (3 questions) — scored instantly, explanation for every question, no login.