The ____ method in Python is used to initialize a newly created object and is called every time the class is instantiated.

  • constructor
  • destructor
  • generator
  • initializer
The "constructor" method in Python is used to initialize a newly created object and is called every time the class is instantiated. This method is typically named __init__ in Python classes.
Add your answer
Loading...

Leave a comment

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