polymorphism and method overriding polymorphism in its simple terms refers to have different forms it is the key feature of oop it enables program to assign different version of the function based on the context in pythonmethod overriding is way to implement polymorphism if the base class and derived classes are having the same methodwhen we create object from the derived classthe derived class version of the method is executed always this is known as method overriding example program for method overriding method overriding #method overriding -super(method class bcdef disp(self)print("base class method"class dc(bc)def disp(self)print("derived class method"ob=dc(ob disp(output derived class method types of inheritances python has various types of inheritances the process of inheritance can be either simple or complex this depends on the following pointsthe number of base classes used in the inheritance nested derivation based on the above points the inheritances are classified in to the six different types single inheritance multilevel inheritance multiple inheritance hierarchical inheritance hybrid inheritance multi-path inheritance single inheritance when only one class is derived from single base classsuch derivation called single inheritance it is the simplest form of inheritance the new class is termed as "derivedclass and the existing class is called "baseclass the newly created class contains the entire characteristics from its base class the example program is already is given above multilevel inheritance page is