The ____ method in a metaclass is called when a new object is created from a class.

  • __del__
  • __init__
  • __new__
  • __str__
The __new__ method in a metaclass is called when a new object is created from a class. This method is responsible for creating and returning a new instance of the class.
Add your answer
Loading...

Leave a comment

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