Python Programming - Inheritance - Discussion

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

Post your comments here:

Your comments will be displayed after verification.