MCQs > IT & Programming > Python > What does a class's __init__() method do?

Python MCQs

What does a class's __init__() method do?

Answer

Correct Answer: It is a method that acts as a constructor and is called automatically whenever a new object is created from a class. It sets the initial state of a new object.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it