<?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: static in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/static/m-p/3039299#M719228</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;The purpose of static constructor is to initialise static attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the static method appears for a class you can not override a static method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful,&lt;/P&gt;&lt;P&gt;Aleem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2007 10:15:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-26T10:15:17Z</dc:date>
    <item>
      <title>static</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/static/m-p/3039298#M719227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the purpose of a static constructor and can a static methos be overrrided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 05:54:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/static/m-p/3039298#M719227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T05:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: static</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/static/m-p/3039299#M719228</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;The purpose of static constructor is to initialise static attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the static method appears for a class you can not override a static method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful,&lt;/P&gt;&lt;P&gt;Aleem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 10:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/static/m-p/3039299#M719228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T10:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: static</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/static/m-p/3039300#M719229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sandeep,&lt;/P&gt;&lt;P&gt;usually constructors are used to initialize variables.&lt;/P&gt;&lt;P&gt;Static Constructor is used to Initialize static variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The static methods are executed  with higher priority without any instance ....&lt;/P&gt;&lt;P&gt;they cannot be overwritten.&lt;/P&gt;&lt;P&gt;for more info..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A static method can be called without prior instatiation of the class. This is the technical aspect. When do we define a method as static? If the method does not need to know any details of an instance then I would define this method as static. This is the semantic aspect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Typical examples are utility methods, calculations, etc.&lt;/P&gt;&lt;P&gt;Example: class CL_ABAP_CONTAINER_UTILITIES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its static methods convert either a string into a structured data type or vice versa. For this purpose the methods do not need any knowledge of any instances, the input is sufficient enough.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 12:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/static/m-p/3039300#M719229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T12:04:43Z</dc:date>
    </item>
  </channel>
</rss>

