MemotivaClass methods, static methods, and metaclasses

What is a metaclass?

Class methods, static methods, and metaclasses

Audio flashcard · 0:17

Nortren·

What is a metaclass?

0:17

A metaclass is the class of a class. Just as a class defines how instances behave, a metaclass defines how classes behave. The default metaclass is type. You can create custom metaclasses by subclassing type and overriding methods like dunder new and dunder init to customize class creation.
docs.python.org