Examveda
Examveda

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

D. A class that cannot be instantiated

Answer: Option C

Solution(By Examveda Team)

A metaclass is a class that defines the structure of other classes, serving as a class template.

This Question Belongs to Python Program >> Advanced OOP Concepts

Join The Discussion

Related Questions on Advanced OOP Concepts

What is inheritance in OOP?

A. Creating new objects from existing ones

B. Allowing objects to share attributes and methods

C. Restricting access to object attributes

D. Converting classes into objects