<?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: Class concept in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-concept/m-p/3510073#M844238</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;gt; this is used for static methods and static attributes.&lt;/P&gt;&lt;P&gt;-&amp;gt; used for Instance methods and Instance attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instance components exist separately in each instance (object) of the class and are referred using instance component selector using '-&amp;gt;'&lt;/P&gt;&lt;P&gt;&amp;amp;#61664;.Static components only exist once per class and are valid for all instances of the class. They are declared with the CLASS- keywords&lt;/P&gt;&lt;P&gt;Static components can be used without even creating an instance of the class and are referred to using static component selector     &amp;#145; =&amp;gt;&amp;#146; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the below example u can better understand the concept:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YSUBOOPS17  .&lt;/P&gt;&lt;P&gt;CLASS c1 DEFINITION.&lt;/P&gt;&lt;P&gt; PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;  data : i_num type i value 5.&lt;/P&gt;&lt;P&gt;  class-data :    &lt;/P&gt;&lt;P&gt;    s_num type i value 6 .&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS c1 IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;DATA : oref1 TYPE REF TO c1 .&lt;/P&gt;&lt;P&gt;CREATE OBJECT : oref1.&lt;/P&gt;&lt;P&gt;write:/5 oref1-&amp;gt;i_num.&lt;/P&gt;&lt;P&gt;write:/5 c1=&amp;gt;s_num .&lt;/P&gt;&lt;P&gt;write:/5 oref1-&amp;gt;s_num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratap.M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 5, 2008 6:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2008 14:11:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-05T14:11:51Z</dc:date>
    <item>
      <title>Class concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-concept/m-p/3510072#M844237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when we use double arrow symbol (==&amp;gt;) and when we use single arrow symbol in OOPS concepts..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 13:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-concept/m-p/3510072#M844237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-05T13:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Class concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-concept/m-p/3510073#M844238</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;gt; this is used for static methods and static attributes.&lt;/P&gt;&lt;P&gt;-&amp;gt; used for Instance methods and Instance attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instance components exist separately in each instance (object) of the class and are referred using instance component selector using '-&amp;gt;'&lt;/P&gt;&lt;P&gt;&amp;amp;#61664;.Static components only exist once per class and are valid for all instances of the class. They are declared with the CLASS- keywords&lt;/P&gt;&lt;P&gt;Static components can be used without even creating an instance of the class and are referred to using static component selector     &amp;#145; =&amp;gt;&amp;#146; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the below example u can better understand the concept:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YSUBOOPS17  .&lt;/P&gt;&lt;P&gt;CLASS c1 DEFINITION.&lt;/P&gt;&lt;P&gt; PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;  data : i_num type i value 5.&lt;/P&gt;&lt;P&gt;  class-data :    &lt;/P&gt;&lt;P&gt;    s_num type i value 6 .&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS c1 IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;DATA : oref1 TYPE REF TO c1 .&lt;/P&gt;&lt;P&gt;CREATE OBJECT : oref1.&lt;/P&gt;&lt;P&gt;write:/5 oref1-&amp;gt;i_num.&lt;/P&gt;&lt;P&gt;write:/5 c1=&amp;gt;s_num .&lt;/P&gt;&lt;P&gt;write:/5 oref1-&amp;gt;s_num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratap.M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 5, 2008 6:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2008 14:11:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-concept/m-p/3510073#M844238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-05T14:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Class concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-concept/m-p/3510074#M844239</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;gt; Object Component Selector&lt;/P&gt;&lt;P&gt;   To access instance components from outside the class using obj-&amp;gt;comp.&lt;/P&gt;&lt;P&gt;  ME-&amp;gt;comp can be used to point to the instance components and static components of this class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =&amp;gt; Class Component Selector&lt;/P&gt;&lt;P&gt;    You can access the static components from outside the class with the expression class=&amp;gt;comp &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Static Access&lt;/P&gt;&lt;P&gt;The following syntax applies (ref is a reference variable):&lt;/P&gt;&lt;P&gt;Access to an instance attribute attr: ref-&amp;gt;attr &lt;/P&gt;&lt;P&gt;Calling an instance method meth: CALL METHOD ref-&amp;gt;meth &lt;/P&gt;&lt;P&gt;In addition to reference variables, the class name can be used for access:&lt;/P&gt;&lt;P&gt;Accessing a static attribute attr: class=&amp;gt;attr &lt;/P&gt;&lt;P&gt;Calling a static method meth: CALL METHOD class=&amp;gt;meth &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dynamic Access&lt;/P&gt;&lt;P&gt;The following syntax applies (ref is a reference variable):&lt;/P&gt;&lt;P&gt;Calling an instance method meth: CALL METHOD ref-&amp;gt;(f)&lt;/P&gt;&lt;P&gt;Calling a static method meth: CALL METHOD class=&amp;gt;(f)  CALL METHOD (c)=&amp;gt;meth  CALL METHOD (c)=&amp;gt;(f) &lt;/P&gt;&lt;P&gt;Calling own method meth: CALL METHOD (f)  CALL METHOD ME-&amp;gt;(f)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 04:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-concept/m-p/3510074#M844239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T04:17:24Z</dc:date>
    </item>
  </channel>
</rss>

