this function is in parent class this function is in child this function is in parent class this function is in child method overridingmethod overriding is an ability of class to change the implementation of method provided by one of its base class method overriding is thus strict part of inheritance mechanism to override method in base classwe must define new method with sam name and same parameters in the derived class overriding is very important part of oop since it is feature that makes inheritance exploit its full power through method overriding class may "copyanother classavoiding duplicated code and at the same time enhance or customize part of it examplefor method overriding class adef display(self)print("this is base class"