1.

How do define constructor and destructor in Python?

Answer»

General format of init method (Constructor function) 

def_init_(self.[args ……….]):

<statements>

To define destructor

 _del_ ( ) method is used.



Discussion

No Comment Found