object-oriented programming in the dir output for the object (instance of the cricketfan class)we see that it has the attributes and methods of the parent classas well as the attributes and methods that were added when the class was extended to create the cricketfan class summary this is very quick introduction to object-oriented programming that focuses mainly on terminology and the syntax of defining and using objects let' quickly review the code that we looked at in the beginning of the at this point you should fully understand what is going on stuff list(stuff append('python'stuff append('chuck'stuff sort(print (stuff[ ]print (stuff __getitem__( )print (list __getitem__(stuff, )codethe first line constructs list object when python creates the list objectit calls the constructor method (named __init__to set up the internal data attributes that will be used to store the list data we have not passed any parameters to the constructor when the constructor returnswe use the variable stuff to point to the returned instance of the list class the second and third lines call the append method with one parameter to add new item at the end of the list by updating the attributes within stuff then in the fourth linewe call the sort method with no parameters to sort the data within the stuff object we then print out the first item in the list using the square brackets which are shortcut to calling the __getitem__ method within the stuff this is equivalent to calling the __getitem__ method in the list class and passing the stuff object as the first parameter and the position we are looking for as the second parameter at the end of the programthe stuff object is discarded but not before calling the destructor (named __del__so that the object can clean up any loose ends as necessary those are the basics of object-oriented programming there are many additional details as to how to best use object-oriented approaches when developing large applications and libraries that are beyond the scope of this if you are curious about where the list class is definedtake look at (hopefully the url won' changeclass is written in language called "cif you take look at that source code and find it curious you might want to explore few computer science courses