methodsa() ()and (suppose we were to define classt that extendss and includes an additional fieldyand two methodsd(ande(the classt would theninherit the instance variablex and the methodsa() ()andc(froms we illustrate the relationships between the classs and the classt in aclass inheritance diagram in figure each box in such diagram denotes classwith its namefields (or instance variables)and methods included as subrectangles figure class inheritance diagram each box denotes classwith its namefieldsand methodsand an arrow between boxes denotes an inheritance relation object creation and referencing when an object is createdmemory is allocated for its data fieldsand these same fields are initialized to specific beginning values typicallyone associates the new object with variablewhich serves as "linkto object oand is said to reference when we wish to access object (for the purpose of getting at its fields or executing its methods)we can either request the execution of one of ' methods (defined by the class that belongs to)or look up one of the fields of indeedthe primary way that an object interacts with another object is for to