<?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: ABAP Object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-object/m-p/2081826#M431920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renjith Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Object Orientation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A programming technique in which solutions reflect real world objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are objects ?&lt;/P&gt;&lt;P&gt;An object is an instantiation of a class. E.g. If &amp;#147;Animal&amp;#148; is a class, A cat &lt;/P&gt;&lt;P&gt;can be an object of that class .&lt;/P&gt;&lt;P&gt;With respect to code, Object refers to a set of services ( methods / &lt;/P&gt;&lt;P&gt;attributes ) and can contain data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are classes ?&lt;/P&gt;&lt;P&gt;A class defines the properties of an object. A class can be instantiated &lt;/P&gt;&lt;P&gt;as many number of times &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advantages of Object Orientated approach &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Easier to understand when the system is complex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Easy to make changes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Encapsulation - Can restrict the visibility of the data ( Restrict the access to the data )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Polymorphism - Identically named methods behave differently in different classes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inheritance - You can use an existing class to define a new class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Polymorphism and inheritance lead to code reuse &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classes in abap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classes in ABAP are either local or global&lt;/P&gt;&lt;P&gt;Global classes are declared in class builder (SE24 )&lt;/P&gt;&lt;P&gt;Local classes are declared within programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Components of a class &lt;/P&gt;&lt;P&gt;Attributes : Internal data fields of class &lt;/P&gt;&lt;P&gt;Attributes can be either instance attributes &amp;#150; specific to each instance of the class ( object ) or static attributes which are common to all instances &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Methods : &lt;/P&gt;&lt;P&gt;Subroutines / procedures in a class that define the behavior of the object. Methods can also be instance methods or static methods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Encapsulation in ABAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Encapsulation is obtained through the restriction in visibility of attributes / methods attained through the definition of Public, Private and Protected section of a class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Public Section&lt;/P&gt;&lt;P&gt;All of the components declared in the public section are accessible to all users of the class, and to the methods of the class and any classes that inherit from it. The public components of the class form the interface between the class and its users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Protected Section&lt;/P&gt;&lt;P&gt;All of the components declared in the protected section are accessible to all methods of the class and of classes that inherit from it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Section&lt;/P&gt;&lt;P&gt;Components that you declare in the private section are only visible in the methods of the same class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inheritance in ABAP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inheritance allows you to derive a class based on an already existing class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS &amp;lt;subclass&amp;gt; DEFINITION INHERITING FROM &amp;lt;superclass&amp;gt;. &lt;/P&gt;&lt;P&gt;&amp;#133;..&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;CLASS &amp;lt;subclass&amp;gt; IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&amp;#133;&amp;#133;&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All attributes / methods of super class become the property of the subclass too. Only public and protected attributes / methods are visible in the subclass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Polymorphism in ABAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When methods with same name perform differently under different&lt;/P&gt;&lt;P&gt;circumstances we call it polymorphism.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Methods redefined in a subclass is an example for Polymorphism&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interfaces&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interfaces are used to define the model of a class.&lt;/P&gt;&lt;P&gt;They also like classes can be either local or global.&lt;/P&gt;&lt;P&gt;Global interfaces are defined through SE24 and local interfaces are defined in program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this online document (starting page 1291).&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check this links as well.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.futureobjects.de/content/intro_oo_e.html" target="test_blank"&gt;http://www.futureobjects.de/content/intro_oo_e.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/business-add-in-you-need-to-understand-abap-oo-interface-concept.htm" target="test_blank"&gt;http://www.sap-img.com/abap/business-add-in-you-need-to-understand-abap-oo-interface-concept.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;/people/ravikumar.allampallam/blog/2005/02/11/abap-oo-in-action&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the below links lot of info and examples r there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/index.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/victorav15/sapr3/abap_ood.html" target="test_blank"&gt;http://www.geocities.com/victorav15/sapr3/abap_ood.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.brabandt.de/html/abap_oo.html" target="test_blank"&gt;http://www.brabandt.de/html/abap_oo.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this cool weblog:&lt;/P&gt;&lt;P&gt;/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql&lt;/P&gt;&lt;P&gt;/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b6254f411d194a60000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b6254f411d194a60000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/index.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt" target="test_blank"&gt;http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf" target="test_blank"&gt;http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt" target="test_blank"&gt;http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/" target="test_blank"&gt;http://www.allsaplinks.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/" target="test_blank"&gt;http://www.sap-img.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/" target="test_blank"&gt;http://www.sapgenie.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com" target="test_blank"&gt;http://help.sap.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/index.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/controls/index.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/controls/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf" target="test_blank"&gt;http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf" target="test_blank"&gt;http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/index.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For funtion module to class&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for classes&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for methods&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for inheritance&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for interfaces&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b6254f411d194a60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b6254f411d194a60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Materials:&lt;/P&gt;&lt;P&gt;1) &lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf&lt;/A&gt; -- Page no: 1291&lt;/P&gt;&lt;P&gt;2) &lt;A href="http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt" target="test_blank"&gt;http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2007 07:05:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-05T07:05:49Z</dc:date>
    <item>
      <title>ABAP Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-object/m-p/2081823#M431917</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;In which area we can use ABAP Objects , I am working as ABAP consultant  , Currently my company asked me to look on ABAP objects and give some info on where i can use ABAP Objects  , What will be the advantage of it , Some real time scenarios that i can use ABAP objects ... Like that ...Can anyone help on this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Renjith Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 06:58:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-object/m-p/2081823#M431917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T06:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-object/m-p/2081824#M431918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost everything in ABAP can be Coded with ABAP objects.&lt;/P&gt;&lt;P&gt;Actually in current scenarios it is more preferred then the conventional ABAP.&lt;/P&gt;&lt;P&gt;Its best utility comes with ALV displays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this thread -&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2440830"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Infact if you serach the forum for ABAP object you will come across many good things to know about it specially from the replies by Rich.&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;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 07:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-object/m-p/2081824#M431918</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-04-05T07:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-object/m-p/2081825#M431919</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;Look at the below link, it will solve your problem&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 07:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-object/m-p/2081825#M431919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T07:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-object/m-p/2081826#M431920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renjith Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Object Orientation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A programming technique in which solutions reflect real world objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are objects ?&lt;/P&gt;&lt;P&gt;An object is an instantiation of a class. E.g. If &amp;#147;Animal&amp;#148; is a class, A cat &lt;/P&gt;&lt;P&gt;can be an object of that class .&lt;/P&gt;&lt;P&gt;With respect to code, Object refers to a set of services ( methods / &lt;/P&gt;&lt;P&gt;attributes ) and can contain data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are classes ?&lt;/P&gt;&lt;P&gt;A class defines the properties of an object. A class can be instantiated &lt;/P&gt;&lt;P&gt;as many number of times &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advantages of Object Orientated approach &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Easier to understand when the system is complex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Easy to make changes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Encapsulation - Can restrict the visibility of the data ( Restrict the access to the data )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Polymorphism - Identically named methods behave differently in different classes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inheritance - You can use an existing class to define a new class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Polymorphism and inheritance lead to code reuse &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classes in abap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classes in ABAP are either local or global&lt;/P&gt;&lt;P&gt;Global classes are declared in class builder (SE24 )&lt;/P&gt;&lt;P&gt;Local classes are declared within programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Components of a class &lt;/P&gt;&lt;P&gt;Attributes : Internal data fields of class &lt;/P&gt;&lt;P&gt;Attributes can be either instance attributes &amp;#150; specific to each instance of the class ( object ) or static attributes which are common to all instances &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Methods : &lt;/P&gt;&lt;P&gt;Subroutines / procedures in a class that define the behavior of the object. Methods can also be instance methods or static methods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Encapsulation in ABAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Encapsulation is obtained through the restriction in visibility of attributes / methods attained through the definition of Public, Private and Protected section of a class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Public Section&lt;/P&gt;&lt;P&gt;All of the components declared in the public section are accessible to all users of the class, and to the methods of the class and any classes that inherit from it. The public components of the class form the interface between the class and its users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Protected Section&lt;/P&gt;&lt;P&gt;All of the components declared in the protected section are accessible to all methods of the class and of classes that inherit from it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Section&lt;/P&gt;&lt;P&gt;Components that you declare in the private section are only visible in the methods of the same class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inheritance in ABAP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inheritance allows you to derive a class based on an already existing class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS &amp;lt;subclass&amp;gt; DEFINITION INHERITING FROM &amp;lt;superclass&amp;gt;. &lt;/P&gt;&lt;P&gt;&amp;#133;..&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;CLASS &amp;lt;subclass&amp;gt; IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&amp;#133;&amp;#133;&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All attributes / methods of super class become the property of the subclass too. Only public and protected attributes / methods are visible in the subclass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Polymorphism in ABAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When methods with same name perform differently under different&lt;/P&gt;&lt;P&gt;circumstances we call it polymorphism.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Methods redefined in a subclass is an example for Polymorphism&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interfaces&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interfaces are used to define the model of a class.&lt;/P&gt;&lt;P&gt;They also like classes can be either local or global.&lt;/P&gt;&lt;P&gt;Global interfaces are defined through SE24 and local interfaces are defined in program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this online document (starting page 1291).&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check this links as well.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.futureobjects.de/content/intro_oo_e.html" target="test_blank"&gt;http://www.futureobjects.de/content/intro_oo_e.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/business-add-in-you-need-to-understand-abap-oo-interface-concept.htm" target="test_blank"&gt;http://www.sap-img.com/abap/business-add-in-you-need-to-understand-abap-oo-interface-concept.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;/people/ravikumar.allampallam/blog/2005/02/11/abap-oo-in-action&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the below links lot of info and examples r there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/index.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/victorav15/sapr3/abap_ood.html" target="test_blank"&gt;http://www.geocities.com/victorav15/sapr3/abap_ood.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.brabandt.de/html/abap_oo.html" target="test_blank"&gt;http://www.brabandt.de/html/abap_oo.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this cool weblog:&lt;/P&gt;&lt;P&gt;/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql&lt;/P&gt;&lt;P&gt;/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b6254f411d194a60000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b6254f411d194a60000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/index.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt" target="test_blank"&gt;http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf" target="test_blank"&gt;http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt" target="test_blank"&gt;http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/" target="test_blank"&gt;http://www.allsaplinks.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/" target="test_blank"&gt;http://www.sap-img.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/" target="test_blank"&gt;http://www.sapgenie.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com" target="test_blank"&gt;http://help.sap.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/index.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/controls/index.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/controls/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf" target="test_blank"&gt;http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf" target="test_blank"&gt;http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/index.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For funtion module to class&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for classes&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for methods&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for inheritance&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for interfaces&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b6254f411d194a60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b6254f411d194a60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Materials:&lt;/P&gt;&lt;P&gt;1) &lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf&lt;/A&gt; -- Page no: 1291&lt;/P&gt;&lt;P&gt;2) &lt;A href="http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt" target="test_blank"&gt;http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 07:05:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-object/m-p/2081826#M431920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T07:05:49Z</dc:date>
    </item>
  </channel>
</rss>

