//copy constructor for the text object text::text(const text &textSource){ //copy all of the items over from the source to the //current object setTitle(textSource.getTitle()); setAuthor(textSource.getAuthor()); setRating(textSource.getRating()); setKeyword(textSource.getKeyword()); strcpy(response, textSource.getResponse()); }