Tag: Constructors in Python
Constructors in Python
- Naveen
- 0
A constructor is a special method used to create and initialize an object if a class. On the other hand, a destructor is used to destroy the object. Example: When we execute obj = Sample(), Python gets to know that obj is an class sample and calls the constructor of that class to create an…
Read More