Python Programming - Inheritance - Discussion

Discussion Forum : Inheritance - General Questions (Q.No. 44)
44.
What is the purpose of the __doc__ attribute in Python classes?
To define class attributes
To create a new instance of the class
To provide documentation for the class
To access superclass attributes directly
Answer: Option
Explanation:
The __doc__ attribute is used to provide documentation (docstring) for a class, describing its purpose and usage.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.