Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #30587

Re: a question about factory method

Newsgroups comp.lang.java.programmer
Date 2014-12-18 10:43 -0800
References <ff7f0941-582f-4a6f-83fd-2fa71434ff46@googlegroups.com> <m6usaq$6bg$1@dont-email.me> <ae5dcc85-b23a-4ee3-94b3-350e585f502d@googlegroups.com> <m6v1e2$u2d$1@dont-email.me>
Message-ID <74e17e36-3ccb-45c4-b50a-439d2799e3c7@googlegroups.com> (permalink)
Subject Re: a question about factory method
From John <xsli2@yahoo.com>

Show all headers | View raw


Eric,

Your reply goes off the topic. I didn't mean digging deep into Calendar thing. Since you mentioned it, I use it as an example to ask.

I meant to ask How to use factory method to return different objects(which belong to the same parent class). A couple of repliers, including you, mentioned that as one of several advantages of using factory versus using a public constructor.

Thank you.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

a question about factory method John <xsli2@yahoo.com> - 2014-12-18 05:57 -0800
  Re: a question about factory method Robert Klemme <shortcutter@googlemail.com> - 2014-12-18 15:28 +0100
  Re: a question about factory method Silvio <silvio@internet.com> - 2014-12-18 15:43 +0100
  Re: a question about factory method Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-12-18 10:37 -0500
    Re: a question about factory method John <xsli2@yahoo.com> - 2014-12-18 08:04 -0800
      Re: a question about factory method Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-12-18 12:04 -0500
        Re: a question about factory method John <xsli2@yahoo.com> - 2014-12-18 10:43 -0800
          Re: a question about factory method Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-12-18 14:24 -0500
            Re: a question about factory method Robert Klemme <shortcutter@googlemail.com> - 2014-12-19 01:39 +0100
  Re: a question about factory method Roedy Green <see_website@mindprod.com.invalid> - 2014-12-18 13:43 -0800

csiph-web