In this OOP in Python Tutorial video, we will be learning about 'Dunder Method' also know as 'Magic Method'. We will be learning about __init__(), __del__(), __repr__(), __str__() methods and __doc__ attribute.
In Python __init__() will be called when the object is created and __del__() will be called when the object is deleted.
In python __repr__ method used to compute the "official" string representation of an object, while __str__ method computes the "informal" string representations of an object.
#DunderMethod
#__init__
#__del__
#__repr__
#__str__
#__doc__
#OOPinPython
#PythonMadeEasy
#NonStopEnlightenment
#PythonTutorial
If you have any queries please post it in
http://samueledison.com/forum