Python Programming - Inheritance - Discussion

Discussion Forum : Inheritance - General Questions (Q.No. 18)
18.
What is the role of the __bases__ attribute in a Python class?
To access the superclass attributes
To check if an object is an instance of a specific class
To determine the base classes of a class
To create a new instance of the class
Answer: Option
Explanation:
The __bases__ attribute is a tuple containing the base classes of a class, allowing you to inspect the inheritance hierarchy.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.