of the two objects in additionthe book object also inherits all of the parent' methods but since we have provided new definitions for the constructor and the getbibentry(methodthe only method actually inherited from the parent is the getcode(method pub code test test title just just aa test test author rob rob green green book publication code smith smith title the the year year that that was was author john john smith smith publisher bookends bookends publishing publishing year book figure the data attributes of the publication and book objects invoking methods the methods available to objects of each class are shown in figure note that the getbibentry(method of the publication class is inherited and made available to the book class publication publication __init__ publication getcode(publication getbibentry(book book __init__ publication getcode(book getbibentry(figure the methods available for use with publication and book objects what happens if we use the getbibentry(method on the book object as an argument to the print(functionprintbook getbibentry(it will print the bibliography entry shown here[smith "the year that wasby john smithbookends publishing which it does by calling the getbibentry(method defined by the book class that method first calls the parent' getbibentry(method and then concatenates the result of that call with the publisher and year data needed to form book entry the methods of child class can access the data attributes of the parent class it' up to the designer of the class to ensure they do not modify the attributes incorrectly