<?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 methods vs instant methods in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/static-methods-vs-instant-methods/m-p/2825570#M661089</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;&amp;lt;b&amp;gt;Instance Method&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can declare instance methods by using the METHODS statement. They play a very important role as they can access all of the attributes of a class and can trigger all of the events of the class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Static Methods&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can declare static methods by using the CLASS-METHODS statement. They are important and can only access static attributes and trigger static events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;STATIC METHODS&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;CAN ONLY USE STATIC COMPONENTS IN THEIR IMPLEMENTATION PART &lt;/P&gt;&lt;P&gt;CAN BE CALLED USING THE CLASS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Static methods (also referred to as class methods) are called using CALL METHOD &amp;lt;classname&amp;gt;=&amp;gt;&amp;lt;class_method&amp;gt;.&lt;/P&gt;&lt;P&gt;If you are calling a static method from within the class, you can omit the class name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You access static attributes using &amp;lt;classname&amp;gt;=&amp;gt;&amp;lt;class_attribute&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2007 09:42:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-04T09:42:31Z</dc:date>
    <item>
      <title>static methods vs instant methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/static-methods-vs-instant-methods/m-p/2825569#M661088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all abap gurus &lt;/P&gt;&lt;P&gt;thanks in advance &lt;/P&gt;&lt;P&gt;all of the objects in the class can acess its its static attributes . and if u change the static attribute in an  object the change is visible in all other objects in the calsssss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u pls expain this and tell the diffrence bewteen static and instance metod s?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 09:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/static-methods-vs-instant-methods/m-p/2825569#M661088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T09:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: static methods vs instant methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/static-methods-vs-instant-methods/m-p/2825570#M661089</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;&amp;lt;b&amp;gt;Instance Method&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can declare instance methods by using the METHODS statement. They play a very important role as they can access all of the attributes of a class and can trigger all of the events of the class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Static Methods&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can declare static methods by using the CLASS-METHODS statement. They are important and can only access static attributes and trigger static events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;STATIC METHODS&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;CAN ONLY USE STATIC COMPONENTS IN THEIR IMPLEMENTATION PART &lt;/P&gt;&lt;P&gt;CAN BE CALLED USING THE CLASS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Static methods (also referred to as class methods) are called using CALL METHOD &amp;lt;classname&amp;gt;=&amp;gt;&amp;lt;class_method&amp;gt;.&lt;/P&gt;&lt;P&gt;If you are calling a static method from within the class, you can omit the class name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You access static attributes using &amp;lt;classname&amp;gt;=&amp;gt;&amp;lt;class_attribute&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 09:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/static-methods-vs-instant-methods/m-p/2825570#M661089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T09:42:31Z</dc:date>
    </item>
  </channel>
</rss>

