Python Programming - Classes - Discussion
Discussion Forum : Classes - General Questions (Q.No. 10)
10.
What is the purpose of the
__del__
method?
Answer: Option
Explanation:
The
__del__
method is a special method in Python classes that is called when an object is about to be destroyed and its memory is released. It is often used to perform cleanup operations before an object is removed from memory.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers