Python Programming - Inheritance - Discussion

Discussion Forum : Inheritance - General Questions (Q.No. 57)
57.
In Python, what is the purpose of the __class__ attribute in an instance of a class?
To define class attributes
To create a new instance of the class
To access the class of an instance
To access superclass attributes directly
Answer: Option
Explanation:
The __class__ attribute is used to access the class of an instance in Python.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.