Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9049641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:27:00+00:00 2026-06-16T12:27:00+00:00

So ive been looking at several videos, read some information on the internet about

  • 0

So ive been looking at several videos, read some information on the internet about this design pattern but just to make things clear is it correct that this pattern is:

an Object (Subject) that has its own implementation of the Iterator interface

And nothing else? no fancy stuff like the observer pattern or decorator pattern or anything like that? It is simply just an implementation of an already known interface?!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T12:27:02+00:00Added an answer on June 16, 2026 at 12:27 pm

    Short Answer

    Yes, implementing the interface is all there is to it.

    Long Answer

    Saying “only implementing an interface” is like having an idea for a movie and then “only creating the movie”.

    Your interface is nothing more than a spec; it doesn’t do any work, it just defines a signature. The vast majority of your work is done when you implement the interface — ie: WRITE the code.

    Please don’t let the words “implement an interface” fool you. It can be simple, or intractably complex.

    To give you an idea, take this example. I have an interface for a class that can take your height and weight and from that alone predict the name of your future wife. It’s amazing, isn’t it? Here’s the interface:

    class IPredictor {
       public abstract void setWeight(double weight);
       public abstract void setHeight(double height);
       public abstract string getNameOfFutureWife();
    };
    

    Now to make this work, you ONLY need to implement the interface. Please let me know when you have it done; I’d like to know the name of the future Mrs. Barzell 😀

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i've been looking several guidance about this in Grails official documentation site here but
Ive been looking for a proper rounding mechanism but nothing I find seems to
I've been looking for some mechanism through which I can fetch android app's information
I've been looking for an answer to my problem for several days, but sadly
I've been looking at this for several months and so far this is the
I'm feeling really stupid having to ask this. But I've been looking at my
I've been looking around for a solution for several hours now, and maybe I'm
Several databases I've been looking at recently implement a virtual machine internally to perform
I've been looking into ways to compress PHP libraries, and I've found several libraries
Ive been looking for a jQuery menu with a slide down effect like Yoothemes.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.