Iterator Design Pattern Tutorial

Iterator Design Pattern TutorialWelcome to my Iterator Design Pattern Tutorial! The iterator design pattern allows you to access objects that are stored in many different collection types.

You do this by creating a common interface that these classes share. Then you have them provide you with an iterator that allows you to traverse the objects they contain.

Because they all share a common interface you can treat them polymorphically and eliminate a lot of duplicate code. The example video will explain how and the code that follows will reenforce the concepts.

If you like videos like this, it helps to tell Google [googleplusone]

Share it if you think others will find it useful [nttfblike]

Code from the Video

SONGINFO.JAVA

SONGSOFTHE70S.JAVA

SONGSOFTHE80S.JAVA

SONGSOFTHE90S.JAVA

DISCJOCKEY.JAVA

RADIOSTATION.JAVA

SONGITERATOR.JAVA

35 thoughts on “Iterator Design Pattern Tutorial”

    1. You’re very welcome 🙂 I’m finishing up object oriented design today. Then the next tutorial will be on code refactoring, which will help you incorporate design patterns into your designs.

  1. WoooW , This is absolutely Great .
    Thank you so much sir ,
    Hats Off 🙂
    You’Re The Man , You’Re The Best .
    Keep up the good work !

  2. Derek,
    I have always found your videos and code on design patterns to be very concise and to the point. Please continue your good work, and thanks a ton !

    Sudhakaran

      1. UML schema like Factory Method. Most of your tutorials you used the UML diagrams. But in there after explanation you passed directly to code )) I understand everythink. But if u can plz send me full presentation

  3. Thank you SO MUCH for all your veideos. I am amazed that people take their time to do this for everyone to benefit. I feel like you are providing great content and great help. Thank you so much!

    P.S. This helps a lot with exam revision too!

    1. You’re very welcome 🙂 I have continued to do this because I have found so many wonderful people on the internet that I have not found any place else. I’m more then happy to help.

  4. Actually you’ve created a new Learning pattern ;). Doesn’t matter How much complicated the topic is, just watch the video once and then go through the code, you get it. Good work Derek!

Leave a Reply

Your email address will not be published. Required fields are marked *