examerioLogin

What is a metaclass in Python?

📘 Explanation

A metaclass is the class of a class, so it governs how classes themselves are built, typically by customizing type and hooking into new or init. The other choices misdescribe it as a module, an abstract base class, or a decorator, none of which matches how metaclasses actually work.

Related questions

← PreviousNo login needed