Midterm-v2-solution

Named unionvisitor for an lrstructset so that it

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: t b [6 marks] Continuing with this example, suppose we now execute the following code: myList.insertFront("Ludwig"); Draw a diagram showing the structure of the LRStruct referred to by myList. Be sure to show each LRStruct object and each state object in the structure, along with any String objects contained in myList. _datum “Ludwig” myList _state _rest _state LRStruct NonEmpty LRStruct...
View Full Document

This note was uploaded on 08/19/2013 for the course CSE 1156 taught by Professor Alhonce during the Fall '11 term at SUNY Buffalo.

Ask a homework question - tutors are online