__del__ method is used to destroy instances of a class. A. True

del-method-is-used-to-destroy-instances-of-a-class-a-true

__del__ method is used to destroy instances of a class.

A. True

B. False

The question was posed to me during an interview for a job.

The query is from Classes and Objects in division Classes and Objects, Inheritance, Polymorphism, Encapsulation and Exception Handling of Python

The correct option is A. True

The best explanation: ___del__ method acts as a destructor and is used to destroy objects of classes.