Q. Which method is called when an object is deleted?

  • (A) __init__()
  • (B) __del__()
  • (C) __remove__()
  • (D) destroy()
πŸ’¬ Discuss
βœ… Correct Answer: (B) __del__()
Explanation: `__del__()` is the destructor method called when an object is about to be destroyed.
Explanation by: Mr. Dubey
`__del__()` is the destructor method called when an object is about to be destroyed.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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