<?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: difference b/w Class definition and implementation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-class-definition-and-implementation/m-p/3666159#M882959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;in class definition we just decalre the methods,variables...&lt;/P&gt;&lt;P&gt;class c1 definition.&lt;/P&gt;&lt;P&gt;public section.&lt;/P&gt;&lt;P&gt;data:v_ref 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;methods: m1.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;whereas in class implementation we write the logic for that method which we have decalred earlier... &lt;/P&gt;&lt;P&gt;class c1 implementation .&lt;/P&gt;&lt;P&gt;method m1.&lt;/P&gt;&lt;P&gt;write: /'form class c1',v_ref.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2008 08:42:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-08T08:42:26Z</dc:date>
    <item>
      <title>difference b/w Class definition and implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-class-definition-and-implementation/m-p/3666154#M882954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the exact difference b/w Class definition and implementation in OOABAP, What is exact purpose?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Akshitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 08:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-class-definition-and-implementation/m-p/3666154#M882954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T08:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w Class definition and implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-class-definition-and-implementation/m-p/3666155#M882955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the definition part you declare all your methods, attributes. And in the implementation part, you 'implement' the methods you defined, meaning you add the coding to your methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definition: define class, methods, variables.&lt;/P&gt;&lt;P&gt;implementation: add coding to methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a nutshell.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 08:28:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-class-definition-and-implementation/m-p/3666155#M882955</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-08T08:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w Class definition and implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-class-definition-and-implementation/m-p/3666156#M882956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;class definition:&lt;/P&gt;&lt;P&gt;Defined in the global area of a local program :-&lt;/P&gt;&lt;P&gt;CLASS &amp;lt;class name&amp;gt; DEFINITION.&lt;/P&gt;&lt;P&gt;&amp;#133;..&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;All the attributes , methods, events  and interfaces are declared here.&lt;/P&gt;&lt;P&gt;Cannot be declared inside a subroutine/function module.&lt;/P&gt;&lt;P&gt;Class definition cannot be nested&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class implementation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Local class in a program is implemented as follows:-&lt;/P&gt;&lt;P&gt;      CLASS &amp;lt;class name&amp;gt; IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;         &amp;#133;..&lt;/P&gt;&lt;P&gt;       ENDCLASS.&lt;/P&gt;&lt;P&gt;Methods used by the class are described here.&lt;/P&gt;&lt;P&gt;A class can be implemented&lt;/P&gt;&lt;P&gt;At the end of the program( like subroutines).&lt;/P&gt;&lt;P&gt;After the class definition. &lt;/P&gt;&lt;P&gt;If the latter is adopted, one must then assign subsequent non-declarative statements explicitly to a processing block, such as START-OF-SELECTION, so that they can be accessed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;rekha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 08:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-class-definition-and-implementation/m-p/3666156#M882956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T08:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w Class definition and implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-class-definition-and-implementation/m-p/3666157#M882957</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;Class definition  :  Definition means declaration of all &lt;/P&gt;&lt;P&gt;                           variables ,methods ..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class implementation : Here you have to write the logic&lt;/P&gt;&lt;P&gt;                                  (functionality) for methods .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS C_COUNTER DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS: SET_COUNTER IMPORTING VALUE(SET_VALUE) TYPE I,&lt;/P&gt;&lt;P&gt;             INCREMENT_COUNTER,&lt;/P&gt;&lt;P&gt;             GET_COUNTER EXPORTING VALUE(GET_VALUE) TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PRIVATE SECTION.&lt;/P&gt;&lt;P&gt;    DATA COUNT TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS C_COUNTER IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD SET_COUNTER.&lt;/P&gt;&lt;P&gt;    COUNT = SET_VALUE.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD INCREMENT_COUNTER.&lt;/P&gt;&lt;P&gt;    ADD 1 TO COUNT.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD GET_COUNTER.&lt;/P&gt;&lt;P&gt;    GET_VALUE = COUNT.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 08:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-class-definition-and-implementation/m-p/3666157#M882957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T08:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w Class definition and implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-class-definition-and-implementation/m-p/3666158#M882958</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;Defining Local Classes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Local classes consist of ABAP source code, where the ABAP statements CLASS...ENDCLASS are enclosed. A complete class definition consists of the following parts, a declaration part and, if required, an implementation part. It is found that the declaration part of a class  IMPLEMENTATION¦&lt;/P&gt;&lt;P&gt;ENDCLASSThe implementation part of a class actually contains the implementation of all methods of the class because it is observed that the implementation part of a local class is a processing block. Therefore, subsequent coding itself is not a part of a processing block and is not accessible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class Structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A class contains components where each component is assigned to a visibility section. Moreover, the classes implement methods. Let us define these components one by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Components &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the first component and is declared in the declaration part of the class. The components define the attributes of the objects in a class. When you define a class, each component is assigned to one of the three visibility sections. This defines the external interface of the class and all of the components of a class are visible within the class. All components are in the same namespace. This means that all components of the class must have names that are unique within the class. There are two kinds of components in a class:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One that exists separately for each object in the class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other consists of those that exist only once for the whole class, regardless of the number of instances. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attributes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is the instance-specific components, which are known as instance components. The static components are those components that are not instance-specific. The classes can define the following components in ABAP Objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attributes are internal data fields that can have any ABAP data type within a class. The state of an object is determined by the contents of its attributes. One kind of attribute is the reference variable. The reference variables are also very important as they allow you to create and address objects. Reference variables can be defined in classes, which allow you to access objects from within a class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 08:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-class-definition-and-implementation/m-p/3666158#M882958</guid>
      <dc:creator>ak_upadhyay</dc:creator>
      <dc:date>2008-04-08T08:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w Class definition and implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-class-definition-and-implementation/m-p/3666159#M882959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;in class definition we just decalre the methods,variables...&lt;/P&gt;&lt;P&gt;class c1 definition.&lt;/P&gt;&lt;P&gt;public section.&lt;/P&gt;&lt;P&gt;data:v_ref 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;methods: m1.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;whereas in class implementation we write the logic for that method which we have decalred earlier... &lt;/P&gt;&lt;P&gt;class c1 implementation .&lt;/P&gt;&lt;P&gt;method m1.&lt;/P&gt;&lt;P&gt;write: /'form class c1',v_ref.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 08:42:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-class-definition-and-implementation/m-p/3666159#M882959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T08:42:26Z</dc:date>
    </item>
  </channel>
</rss>

