Which special method is automatically called when a new object is initialized in a Python class?

Options

  • A. start()
  • B. main()
  • C. __init__()
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. __init__()

Detailed Explanation

The __init__() method initializes an object after its creation.