<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Constructor vs. factory in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-vs-factory/m-p/4490086#M1062741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the standard class cl_salv_table, I notice that objects are not to be instantiated by a create object statemant - but by a factory method. I would now like to understand the concept. Why should the developer of a class create a factory method instead of writing the code needed for instantiating in a constructor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all responses&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Sep 2008 07:18:31 GMT</pubDate>
    <dc:creator>jrgkraus</dc:creator>
    <dc:date>2008-09-11T07:18:31Z</dc:date>
    <item>
      <title>Constructor vs. factory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-vs-factory/m-p/4490086#M1062741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the standard class cl_salv_table, I notice that objects are not to be instantiated by a create object statemant - but by a factory method. I would now like to understand the concept. Why should the developer of a class create a factory method instead of writing the code needed for instantiating in a constructor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all responses&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 07:18:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-vs-factory/m-p/4490086#M1062741</guid>
      <dc:creator>jrgkraus</dc:creator>
      <dc:date>2008-09-11T07:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Constructor vs. factory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-vs-factory/m-p/4490087#M1062742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look at the link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="327405"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 08:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-vs-factory/m-p/4490087#M1062742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T08:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Constructor vs. factory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-vs-factory/m-p/4490088#M1062743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take A look At the Link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="731624"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This might help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sumit Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 08:58:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-vs-factory/m-p/4490088#M1062743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T08:58:36Z</dc:date>
    </item>
  </channel>
</rss>

