F.E. PPS Unit 5 Practical 5 solution
Practical 5: program to illustrate the use of the __del__() method which is called when an object is about to be destroyed. Problem Statement Write a Python program to illustrate the use of the __del__() method which is called when an object is about to be destroyed. Solution Code class Employee: def __init__(self, name): self.name …