Your SlideShare is downloading. ×
0
Iterator Pattern Baljeet Sandhu 20060621
Iterator Pattern Baljeet Sandhu 20060621
Iterator Pattern Baljeet Sandhu 20060621
Iterator Pattern Baljeet Sandhu 20060621
Iterator Pattern Baljeet Sandhu 20060621
Iterator Pattern Baljeet Sandhu 20060621
Iterator Pattern Baljeet Sandhu 20060621
Iterator Pattern Baljeet Sandhu 20060621
Iterator Pattern Baljeet Sandhu 20060621
Iterator Pattern Baljeet Sandhu 20060621
Iterator Pattern Baljeet Sandhu 20060621
Iterator Pattern Baljeet Sandhu 20060621
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Iterator Pattern Baljeet Sandhu 20060621

779

Published on

Published in: Economy & Finance, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
779
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Iterator Pattern Presented by Baljeet Sandhu - 21 st June 06 Based on Head First Design Patterns by Elisabeth Freeman, Eric Freeman, Bert Bates, Kathy Sierra
  • 2.
    • Ace Group
      • Suburban hardware reseller
    • Two Divisions
      • Desktop division
      • Laptop Division
      • Each group manages its own inventory
    • Provide integrated view of inventory
    Scenario
  • 3. Inventory Item - Common to both divisions
  • 4. Desktop division – Inventory Manager
  • 5. Laptop division – Inventory manager
  • 6. Inventory Printer
  • 7. Encapsulate iteration
  • 8. Implement Iterator for Laptop Division
  • 9. The new design..
  • 10. InventoryPrinter revised
  • 11. What did we improve..
    • Do not need to know the implementation
    • Class does not have to manage iteration
    Use an interface, uniform way of accessing collections
  • 12. Iterator pattern Provides a way to access the elements of an aggregate object without exposing its underlying representation

×