Python Programming - Inheritance - Discussion

Discussion Forum : Inheritance - General Questions (Q.No. 58)
58.
What is the purpose of the __metaclass__ attribute in a Python class definition?
To define class attributes
To create a new instance of the class
To specify a metaclass for the class
To access superclass attributes directly
Answer: Option
Explanation:
The __metaclass__ attribute is used to specify a metaclass for the class, allowing customization of class creation and behavior.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.