self = print("the subtraction is:",self -self yclass cdef mul(self, , )self = self = print("the product is:",self *self #hybrid inheritance class ( , )def div(self, , )self = self = print("the division is:",self /self #read data into and =int(input("enter value:") =int(input("enter value:")#create object from derived object ob= (ob add( ,bob sub( ,bob mul( ,bob div( ,bmulti-path inheritance deriving class from two derived classes that are in turn derived from the same base class is called "multi-path inheritancein this context the derived class has two immediate base classeswhich are derived from one base classthere by forming the grandparentparent and child relationship the derived class inherits the features from base class (grandparentvia two separate paths thereforethe base class is also known as the indirect base class problem in multi-path inheritance (diamond problemthe derived class has the members of the base class twicevia parent and parent this results in ambiguity because duplicate set of members is created this is avoided in python using the dynamic algorithm ( and mrolinearizes the search order in such as way that left-to-right ordering is specified to avoid duplication composition or container or complex objects the complex objects are objects that are created from smaller or simple objects for examplea car is built from metal framean enginesome tyresa steering and several other parts the process of building complex objects from simpler objects is known as composition or containership the relationship is also called "has-aor "part-ofrelationship page