<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3656596#M880819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Constructor:&lt;/STRONG&gt;The constructor method is called automatically when you instantiate the class ( create object  statement). You generally pass the parameters of the method in the create object  statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The constructor creates, initializes, and positions the control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:create object docking_container&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    parent = parent&lt;/P&gt;&lt;P&gt;    dynnr = dynnr&lt;/P&gt;&lt;P&gt;    repid = repid&lt;/P&gt;&lt;P&gt;    side = side&lt;/P&gt;&lt;P&gt;    extension = extension&lt;/P&gt;&lt;P&gt;style = style&lt;/P&gt;&lt;P&gt;    lifetime = lifetime&lt;/P&gt;&lt;P&gt;    metric = metric&lt;/P&gt;&lt;P&gt;    caption = caption&lt;/P&gt;&lt;P&gt;    no_autodef_progid_dynnr = no_autodef_progid_dynnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  exceptions&lt;/P&gt;&lt;P&gt;    cntl_error = 1&lt;/P&gt;&lt;P&gt;    cntl_system_error = 2&lt;/P&gt;&lt;P&gt;    create_error = 3&lt;/P&gt;&lt;P&gt;    lifetime_error = 4&lt;/P&gt;&lt;P&gt;    lifetime_dynpro_dynpro_link = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Me Points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By&lt;/P&gt;&lt;P&gt;Pari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2008 12:38:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-16T12:38:12Z</dc:date>
    <item>
      <title>constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3656594#M880817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear exparts&lt;/P&gt;&lt;P&gt;what is constructor?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 12:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3656594#M880817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T12:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3656595#M880818</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;a constructor in a class is a special block of statements called when an object is created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implicitly, each class has an instance constructor method with the reserved name constructor and a static constructor method with the reserved name class_constructor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The instance constructor is executed each time you create an object (instance) with the CREATE OBJECT statement, while the class constructor is executed exactly once before you first access a class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The constructors are always present. However, to implement a constructor you must declare it explicitly with the METHODS or CLASS-METHODS statements. An instance constructor can have IMPORTING parameters and exceptions. You must pass all non-optional parameters when creating an object. Static constructors have no parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 12:37:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3656595#M880818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T12:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3656596#M880819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Constructor:&lt;/STRONG&gt;The constructor method is called automatically when you instantiate the class ( create object  statement). You generally pass the parameters of the method in the create object  statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The constructor creates, initializes, and positions the control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:create object docking_container&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    parent = parent&lt;/P&gt;&lt;P&gt;    dynnr = dynnr&lt;/P&gt;&lt;P&gt;    repid = repid&lt;/P&gt;&lt;P&gt;    side = side&lt;/P&gt;&lt;P&gt;    extension = extension&lt;/P&gt;&lt;P&gt;style = style&lt;/P&gt;&lt;P&gt;    lifetime = lifetime&lt;/P&gt;&lt;P&gt;    metric = metric&lt;/P&gt;&lt;P&gt;    caption = caption&lt;/P&gt;&lt;P&gt;    no_autodef_progid_dynnr = no_autodef_progid_dynnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  exceptions&lt;/P&gt;&lt;P&gt;    cntl_error = 1&lt;/P&gt;&lt;P&gt;    cntl_system_error = 2&lt;/P&gt;&lt;P&gt;    create_error = 3&lt;/P&gt;&lt;P&gt;    lifetime_error = 4&lt;/P&gt;&lt;P&gt;    lifetime_dynpro_dynpro_link = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Me Points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By&lt;/P&gt;&lt;P&gt;Pari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 12:38:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3656596#M880819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T12:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3656597#M880820</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;Constructor method&lt;/P&gt;&lt;P&gt;Implicitly, each class has an instance constructor method with the reserved name constructor and a static constructor method with the reserved name class_constructor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The instance constructor is executed each time you create an object (instance) with the CREATE OBJECT statement, while the class constructor is executed exactly once before you first access a class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The constructors are always present. However, to implement a constructor you must declare it explicitly with the METHODS or CLASS-METHODS statements. An instance constructor can have IMPORTING parameters and exceptions. You must pass all non-optional parameters when creating an object. Static constructors have no parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Static constructor&lt;/P&gt;&lt;P&gt;The static constructor is always called CLASS_CONSTRUCTER, and is called autmatically before the clas is first accessed, that is before any of the following actions are executed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Creating an instance using CREATE_OBJECT&lt;/P&gt;&lt;P&gt;2) Adressing a static attribute using &amp;lt;classname&amp;gt;-&amp;gt;&amp;lt;attrbute&amp;gt;&lt;/P&gt;&lt;P&gt;3) Calling a ststic attribute using CALL METHOD&lt;/P&gt;&lt;P&gt;4) Registering a static event handler&lt;/P&gt;&lt;P&gt;5) Registering an evetm handler method for a static event&lt;/P&gt;&lt;P&gt;The static constructor cannot be called explicitly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 12:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3656597#M880820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T12:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3656598#M880821</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;In simple words, Constructor will allocate memory to the instance of the class. Its an method in Object Orientation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 12:49:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3656598#M880821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T12:49:26Z</dc:date>
    </item>
  </channel>
</rss>

