A

Admin • 833K Points
Coach

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

  • (A) __init__()
  • (B) __del__()
  • (C) __remove__()
  • (D) destroy()
  • Correct Answer - Option(B)
  • Views: 24
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`__del__()` is the destructor method called when an object is about to be destroyed.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.