<?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 Re: Constructor-OOP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-oop/m-p/10925370#M1891271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Till Release 7.0 EhP2, CONSTRUCTOR can only be declared as Public. &lt;SPAN style="color: #333333; font-size: 12px;"&gt;From this release onwards, we can define the CONSTRUCTOR visibility also while defining the class.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Mar 2015 10:52:19 GMT</pubDate>
    <dc:creator>SharathYaralkattimath</dc:creator>
    <dc:date>2015-03-10T10:52:19Z</dc:date>
    <item>
      <title>Constructor-OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-oop/m-p/10925366#M1891267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Newbie question....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both super class and subclass i am using constructor.The problem is arising when i am creating objects.The main constructor is being initialized twice,once there when super class object creating and another due to mandatory addition of "super-&amp;gt;constructor" in subclass constructor method.How can i make sure that the super class constructor does not initialize twice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 10:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-oop/m-p/10925366#M1891267</guid>
      <dc:creator>former_member260552</dc:creator>
      <dc:date>2015-03-10T10:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Constructor-OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-oop/m-p/10925367#M1891268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make your superclass constructor as protected, now only your subclass can call the super class constructor &amp;amp; you cannot create object of superclass.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 10:20:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-oop/m-p/10925367#M1891268</guid>
      <dc:creator>SharathYaralkattimath</dc:creator>
      <dc:date>2015-03-10T10:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Constructor-OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-oop/m-p/10925368#M1891269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried but Constructor can't be declared in protected section.It is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a point in ABAP WORKBENCH TAW12 Part 1 book.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A constructor must be defined in the public area.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 10:34:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-oop/m-p/10925368#M1891269</guid>
      <dc:creator>former_member260552</dc:creator>
      <dc:date>2015-03-10T10:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Constructor-OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-oop/m-p/10925369#M1891270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put condition on '' &lt;SPAN style="color: #333333; font-size: 12px;"&gt;super-&amp;gt;constructor '' in subclass constructor if you dont want to call it twice.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;check if the super class object already created or set a flag if constructor already called.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Hope i solved your problem. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/1200/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 10:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-oop/m-p/10925369#M1891270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-03-10T10:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Constructor-OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-oop/m-p/10925370#M1891271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Till Release 7.0 EhP2, CONSTRUCTOR can only be declared as Public. &lt;SPAN style="color: #333333; font-size: 12px;"&gt;From this release onwards, we can define the CONSTRUCTOR visibility also while defining the class.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 10:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor-oop/m-p/10925370#M1891271</guid>
      <dc:creator>SharathYaralkattimath</dc:creator>
      <dc:date>2015-03-10T10:52:19Z</dc:date>
    </item>
  </channel>
</rss>

