

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Solutions and notes for exercises on object-oriented design patterns, including creating object adapters and class adapters for a stack data structure, and identifying coding patterns in programming experiences.
Typology: Study notes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


I have had success with a simple stack:
This approach forces students to do a bit of work in the adapters while driving home the point that the adapter is, for the most part, a simple interface translator.
Have students reflect on their programming experiences to date and provide a short summary of patterns they’ve observed in their code. It is unlikely that these will be design patterns; it is more likely that they will identify coding patterns for loops, etc., that frequently recur. They should
write up at least one such pattern using the GOF format (though the overall document should be limited to 1-2 pages).