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

  • (A) __del__()
  • (B) __start__()
  • (C) __init__()
  • (D) __create__()
πŸ’¬ Discuss
βœ… Correct Answer: (C) __init__()
Explanation: `__init__()` is the constructor method in Python, called when an object is created.
Explanation by: Mr. Dubey
`__init__()` is the constructor method in Python, called when an object is created.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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