Can someone here explain constructors and destructors in python - simple explanation required - new
- by rgolwalkar
i will try to see if it makes sense :-
class Person:
'''Represnts a person '''
population = 0
def __init__(self,name):
//some statements and population += 1
def __del__(self):
//some statements and population -= 1
def sayHi(self):
'''grettings from person'''
print 'Hi My name is %s' %…