Vidyalelo
Python · Q10

Advanced OOP Concepts

Programming · Python · question 10

Q10

What is a metaclass in Python?

A.
A class with multiple methods
B.
A class that inherits from all other classes
C.
A class that defines the structure of other classes
Answer
D.
A class that cannot be instantiated

Answer: Option C

Solution

Answer: Option C
Solution:
A metaclass is a class that defines the structure of other classes, serving as a class template.