πŸ“Š Python
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

πŸ‘οΈ
54
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
88%
Success Rate