An optional specially named method ( __init__ ) that is called at the moment when a class is being used to construct an object. Usually this is used to set up initial values for the object.
When we create a new class (child) by extending an existing class (parent). The child class has all the attributes and methods of the parent class plus additional attributes and methods defined by the child class.
A function that is contained within a class and the objects that are constructed from the class. Some object-oriented patterns use โmessageโ instead of โmethodโ to describe this concept.
A constructed instance of a class. An object contains all of the attributes and methods that were defined by the class. Some object-oriented documentation uses the term โinstanceโ interchangeably with โobjectโ.
When we create a new class (child) by extending an existing class (parent). The child class has all the attributes and methods of the parent class plus additional attributes and methods defined by the child class.
child class
A new class created when a parent class is extended.
parent class
The class which is being extended to create a new child class.
constructor
An optional specially named method ( ``__init__`` ) that is called at the moment when a class is being used to construct an object.
destructor
An optional specially named method ( ``__del__`` ) that is called at the moment just before an object is destroyed.