In Python, which keyword is used to define a metaclass within a class definition?

  • classfor
  • classmeta
  • metaclass
  • metaclassof
To define a metaclass within a class definition in Python, you use the keyword metaclass. This keyword specifies the metaclass for the class, allowing you to customize how the class is created and behaves.
Add your answer
Loading...

Leave a comment

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