1.

__del__ method is used to destroy instances of a class.(a) True(b) FalseThe 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

Answer»

The correct option is (a) True

The best explanation: ___del__ METHOD acts as a destructor and is USED to destroy OBJECTS of CLASSES.



Discussion

No Comment Found

Related InterviewSolutions