Abstract factory and Factory pattern

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • C#

    Abstract factory and Factory pattern



    I was going through the above videos. Can i conclude Abstract factory
    patterns are extensions of factory patterns. I have made the
    conclusion after viewing the video and reading GOF books. I am
    confused by these two patterns.
  • bruce barker

    #2
    Re: Abstract factory and Factory pattern

    they are different but related.

    the in factory pattern, the code calls the factory directly to create
    objects.

    in the abstract pattern, the abstract factory is called, and it
    determines which factory to call to create the object.

    -- bruce (sqlwork.com)

    C# wrote:

    >
    I was going through the above videos. Can i conclude Abstract factory
    patterns are extensions of factory patterns. I have made the
    conclusion after viewing the video and reading GOF books. I am
    confused by these two patterns.

    Comment

    • tal_mcmahon

      #3
      Re: Abstract factory and Factory pattern

      On Jul 28, 11:25 am, "C#" <surajfrommum.. .@yahoo.comwrot e:

      >
      I was going through the above videos. Can i conclude Abstract factory
      patterns are extensions of factory patterns. I have made the
      conclusion after viewing the video and reading GOF books. I am
      confused by these two patterns.
      I would suggest the Head First series and specifically the GOF
      Patterns book. It is great at illustrating the patterns in a way that
      makes things more clear. Frankly, the GOF book is one of those "need
      a book about the book" kind of books.

      Tal

      Comment

      • sloan

        #4
        Re: Abstract factory and Factory pattern


        The best illustration a book gave me for abstract was "build a computer".

        It was a java book and I don't know which one it was.

        However, I found this


        which is similar.



        "C#" <surajfrommumba i@yahoo.comwrot e in message
        news:f88bde0a-f59f-49a9-8159-d53388b25975@q2 8g2000prh.googl egroups.com...

        >
        I was going through the above videos. Can i conclude Abstract factory
        patterns are extensions of factory patterns. I have made the
        conclusion after viewing the video and reading GOF books. I am
        confused by these two patterns.

        Comment

        • C#

          #5
          Re: Abstract factory and Factory pattern

          On Jul 28, 11:16 pm, "sloan" <sl...@ipass.ne twrote:
          The best illustration a book gave me for abstract was "build a computer".
          >
          It was a java book and I don't know which one it was.
          >
          However, I found thishttp://blog.dotnetstyl ing.com/archive/2007/11/25/Abstract-Factory-Des...
          >
          which is similar.
          >
          "C#" <surajfrommum.. .@yahoo.comwrot e in message
          >
          news:f88bde0a-f59f-49a9-8159-d53388b25975@q2 8g2000prh.googl egroups.com...
          >
          >
          >>
          I was going through the above videos. Can i conclude Abstract factory
          patterns are extensions of factory patterns. I have made the
          conclusion after viewing the video and reading GOF books. I am
          confused by these two patterns.- Hide quoted text -
          >
          - Show quoted text -
          Thanks guys for your clarification

          Comment

          Working...