Re: Unclear on Object references.
Tuesday, January 29, 2002 06:28 PM
in the getParty method, a new instance of party is created and then the name attribute of the new instance is assigned. in the setParty method, a new instance is not created. if the line Party p = new Party(); is removed from the getParty() method, the name attribute will be set as it is in the setParty() method.