<?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: Diffrence between instance and static method? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence-between-instance-and-static-method/m-p/12529304#M2005316</link>
    <description>&lt;P&gt;Dear Gakuto,&lt;/P&gt;&lt;P&gt;the terms "instance" and "static" are general terms from the Object Orientation (OO) programming paradigm.&lt;/P&gt;&lt;P&gt;Imagine, you are a car manufacturer. You would want to track the mileage per car and also the number of cars produced in total. For this scenario, we specify the class "Car". In this class, we specify a static attribute "NumberOfCarsProduced" and a static method "IncreaseNumberOfCarsProduced". Whenever we create a new instance of the class "Car", we increase the number of cars produced in total. The number of cars produced in total is of course static. For the instance, we specify an instance attribute "Mileage" and an instance method "IncreaseMileage". Whenever we drive with a car instance, we increase the mileage. The mileage of a car instance is an instance attribute.&lt;/P&gt;&lt;P&gt;With kind regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
    <pubDate>Thu, 14 Oct 2021 07:24:35 GMT</pubDate>
    <dc:creator>michaelf_</dc:creator>
    <dc:date>2021-10-14T07:24:35Z</dc:date>
    <item>
      <title>Diffrence between instance and static method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence-between-instance-and-static-method/m-p/12529303#M2005315</link>
      <description>&lt;P&gt;What is the difference between static and instance method?&lt;BR /&gt;&lt;BR /&gt;When and why instance method is used ?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 07:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence-between-instance-and-static-method/m-p/12529303#M2005315</guid>
      <dc:creator>Gaku</dc:creator>
      <dc:date>2021-10-14T07:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between instance and static method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence-between-instance-and-static-method/m-p/12529304#M2005316</link>
      <description>&lt;P&gt;Dear Gakuto,&lt;/P&gt;&lt;P&gt;the terms "instance" and "static" are general terms from the Object Orientation (OO) programming paradigm.&lt;/P&gt;&lt;P&gt;Imagine, you are a car manufacturer. You would want to track the mileage per car and also the number of cars produced in total. For this scenario, we specify the class "Car". In this class, we specify a static attribute "NumberOfCarsProduced" and a static method "IncreaseNumberOfCarsProduced". Whenever we create a new instance of the class "Car", we increase the number of cars produced in total. The number of cars produced in total is of course static. For the instance, we specify an instance attribute "Mileage" and an instance method "IncreaseMileage". Whenever we drive with a car instance, we increase the mileage. The mileage of a car instance is an instance attribute.&lt;/P&gt;&lt;P&gt;With kind regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 07:24:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence-between-instance-and-static-method/m-p/12529304#M2005316</guid>
      <dc:creator>michaelf_</dc:creator>
      <dc:date>2021-10-14T07:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between instance and static method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence-between-instance-and-static-method/m-p/12529305#M2005317</link>
      <description>&lt;P&gt;You should rarely use static methods. &lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 08:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence-between-instance-and-static-method/m-p/12529305#M2005317</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2021-10-14T08:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between instance and static method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence-between-instance-and-static-method/m-p/12529306#M2005318</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;aiueo&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;The main difference between the two is that instance method can be called using object reference only and hence is dependent on object while the static method can be called irrespective of the object for a class, it can be called using class name and hence is not dependent on object.&lt;BR /&gt;Static method can access only static attributes while instance method can access static as well as instance attributes. You can declare a static method using 'METHODS' keyword and instance method can be declared using keyword 'CLASS-METHODS'.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 08:54:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence-between-instance-and-static-method/m-p/12529306#M2005318</guid>
      <dc:creator>Tanishaa</dc:creator>
      <dc:date>2021-10-14T08:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between instance and static method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence-between-instance-and-static-method/m-p/12529307#M2005319</link>
      <description>&lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abeninstance_method_glosry.htm" target="test_blank"&gt;https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abeninstance_method_glosry.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenstatic_method_glosry.htm" target="test_blank"&gt;https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenstatic_method_glosry.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenstatic_class_singleton_guidl.htm" target="test_blank"&gt;https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenstatic_class_singleton_guidl.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Oct 2021 17:21:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence-between-instance-and-static-method/m-p/12529307#M2005319</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2021-10-17T17:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between instance and static method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence-between-instance-and-static-method/m-p/12529308#M2005320</link>
      <description>&lt;P&gt;&lt;A href="https://sapabapcentral.blogspot.com/p/sap-abap-tutorials.html" target="_blank"&gt;Static Methods&lt;/A&gt;&lt;STRONG&gt;: &lt;/STRONG&gt;these methods can be called without creating an object for the class. these methods can be directly called using the class name like &lt;/P&gt;&lt;P&gt;cl_gui_frontend_services=&amp;gt;gui_download(). &lt;/P&gt;&lt;P&gt;&lt;A href="https://sapabapcentral.blogspot.com/p/sap-abap-tutorials.html" target="_blank"&gt;Instance Methods&lt;/A&gt;&lt;STRONG&gt;: &lt;/STRONG&gt;These methods can be only called using the object of the class.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 08:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence-between-instance-and-static-method/m-p/12529308#M2005320</guid>
      <dc:creator>former_member747860</dc:creator>
      <dc:date>2021-10-18T08:45:28Z</dc:date>
    </item>
  </channel>
</rss>

