inheritance herethe "dataattribute is found in instancesbut "setdataand "displayare in the class above them ingat this pointwe have three objectstwo instances and class reallywe have three linked namespacesas sketched in figure - in oop termswe say that "is afirstclassas is --they both inherit names attached to the class the two instances start out empty but have links back to the class from which they were generated if we qualify an instance with the name of an attribute that lives in the class objectpython fetches the name from the class by inheritance search (unless it also lives in the instance) setdata("king arthur" setdata( call methodsself is runsfirstclass setdata( neither nor has setdata attribute of its ownso to find itpython follows the link from instance to class and that' about all there is to inheritance in pythonit happens at attribute qualification timeand it just involves looking up names in linked objects --hereby following the is- links in figure - in the setdata function inside firstclassthe value passed in is assigned to self data within methodself--the name given to the leftmost argument by convention--automatically refers to the instance being processed ( or )so the assignments store values in the instancesnamespacesnot the class'sthat' how the data names in figure - are created because classes can generate multiple instancesmethods must go through the self argument to get to the instance to be processed when we call the class' display method to print self datawe see that it' different in each instanceon the other handthe name display itself is the same in and yas it comes (is inheritedfrom the classx display(king arthur display( self data differs in each instance runsfirstclass display(ynotice that we stored different object types in the data member in each instance-- string and floating-point number as with everything else in pythonthere are no declarations for instance attributes (sometimes called members)they spring into existence the first time they are assigned valuesjust like simple variables in factif we were class coding basics