Overriding is the property of a class to change the implementation of a method provided by one of its base classes.
Overriding is a very important part of OOP since it makes inheritance utilize its full power. By using method overriding a class may "copy" another class, avoiding duplicated code, and at the same time enhance or customize part of it. Method overriding is thus a part of the inheritance mechanism.
In Python method overriding occurs by simply defining in the child class a method with the same name of a method in the parent class. When you define a method in the object you make this latter able to satisfy that method call, so the implementations of its ancestors do not come in play.
#PythonTutorial #PythonForBeginners #AtifNaseem
Auf dieser Seite können Sie das Online-Video Overriding in Python - Python Step By Step - 18 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Atif Naseem 18 April 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 367 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!