Q. Which function is called automatically when an object is created?

  • (A) __init__
  • (B) __str__
  • (C) __call__
  • (D) __new__
πŸ’¬ Discuss
βœ… Correct Answer: (A) __init__
Explanation: `__init__()` is the constructor and is called after an object is created.
Explanation by: Mr. Dubey
`__init__()` is the constructor and is called after an object is created.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
91
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
80%
Success Rate