27 Jan 2003 - PowerPoint PPT Presentation

About This Presentation
Title:

27 Jan 2003

Description:

New Business. Java AWT help session Monday 7:00 PM (FL 311) ... Discussion. January 27 2003. Lecture 11. 5. Visitor Design Pattern. Abstract base Visitor class ... – PowerPoint PPT presentation

Number of Views:33
Avg rating:3.0/5.0
Slides: 8
Provided by: georgeh1
Learn more at: http://web.cs.wpi.edu
Category:

less

Transcript and Presenter's Notes

Title: 27 Jan 2003


1
Visitor
  • 27 Jan 2003
  • Lecture 11

2
Outline
  • Previous Business
  • HW1 now available via my.wpi.edu
  • Lecture Contents
  • Iterator Design Pattern
  • Visitor Design Pattern
  • New Business
  • Java AWT help session Monday 700 PM (FL 311)
  • Java Help Sessions Tuesday 500 700 (Annex)
  • Regular TA office hours still valid

3
Iterator
  • Access all elements of an aggregate without
    revealing its internal structure
  • Whiteboard

Element elements new Element 10 for (int i
0 i lt 10 i ) Element e
elementsi
4
Visitor Motivation
  • Set example without Visitor
  • Discussion

5
Visitor Design Pattern
  • Abstract base Visitor class
  • Double dispatch
  • Better encapsulation
  • Analysis

6
Tuesday Assignments
  • Review design patterns
  • singleton, iterator, visitor
  • Prepare for Midterm
  • HW2 due on Thursday

7
References
  • Visitor
  • College Freshman Study Behavior
Write a Comment
User Comments (0)
About PowerShow.com