(continued from previous page print("hello % welcome to the jungleself visitorname class ratejungle(jungle)def __init__(selfnamefeedback)feedback ( - is the best self feedback feedback public attribute inheriting the constructor of the class super(__init__(name using parent class attribute visitorname def printrating(self)print("thanks % for your feedbackself visitornamelisting usage of parent-class method and attributes in childclass #main py #import class 'jungleand 'ratejunglefrom junglebook py from junglebook import jungleratejungle def main() ratejungle("meher" printrating(thanks meher for your feedback calling parent class method welcomemessage(hello meherwelcome to the jungle standard boilerplate to set 'mainas starting function if __name__=='__main__'main(polymorphism in oopwe can use same name for methods and attributes in different classesthe methods or attributes are invoked based on the object typee in listing the method 'scarysoundis used for class 'animaland 'birdat lines and respectively then object of these classes are created at line - of listing finallymethod 'scarysoundis invoked at lines - here line is the object of class animaltherefore method of that class is invoked and corresponding message is printed similarlyline invokes the 'scarymethodof class bird and corresponding line is printed listing polymorphism example with function 'move #scarysound py class animaldef scarysound(self)print("animals are running away due to scary sound " class birddef scarysound(self)print("birds are flying away due to scary sound " scaryscound is not defined for insect class insectpass object oriented programming