PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Blog available for sell
This blog is available for sale. Please 'contact us' if interested.
Advertise with us
Python Multiple Choice Questions
Which of the following best describes inheritance?
A. Ability of a class to derive members of another class as a part of its own definition
B. Means of bundling instance variables and methods in order to restrict access to certain class members
C. Focuses on variables and passing of variables to functions
D. Allows for implementation of elegant software that is well designed and easily modified
Show Answer
Next Question
Correct Answer:
A
Explanation: If the class definition is class B(A): then class B inherits the methods of class A. This is called inheritance.
© 2024-2025 Python Circle
Contact
Sponsor
Archive
Sitemap