In Python, a metaclass is a subclass of _____.

  • class
  • function
  • object
  • type
In Python, a metaclass is a class that defines the behavior of other classes. It is always a subclass of the built-in type class. A metaclass is responsible for creating and initializing new classes.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *