Factory design pattern and implementation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SarojKumarRout
    New Member
    • Oct 2007
    • 1

    Factory design pattern and implementation

    Will any body help me to know what is factry methods in C++ & how its implemented?
  • Studlyami
    Recognized Expert Contributor
    • Sep 2007
    • 464

    #2
    Please read the Posting Guidelines for the forum.

    Comment

    • sicarie
      Recognized Expert Specialist
      • Nov 2006
      • 4677

      #3
      I'm not sure about a factory method, but I have heard of the factory design pattern. The implementation is simple, it just creates new instances of a commonly used class.

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by sicarie
        I'm not sure about a factory method, but I have heard of the factory design pattern. The implementation is simple, it just creates new instances of a commonly used class.
        A factory method is similar to a factory; most of the times the method is a (static)
        member of the (super) class itself and is able to create instances from the class
        or sub classes thereof.

        kind regards,

        Jos

        Comment

        Working...