Examveda

What is the purpose of the __del__ method in Python classes?

A. It is called when an object is about to be destroyed

B. It deletes an object

C. It defines a destructor

D. It is a constructor

Answer: Option A


This Question Belongs to Python Program >> Classes And Objects In Python

Join The Discussion

Related Questions on Classes and Objects in Python