<?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: Abstract Class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675850#M885209</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;say ur abstract class is ZCL_BHABSTRACT&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS zcl_bhabstract DEFINITION LOAD.

CLASS c2 DEFINITION INHERITING FROM zcl_bhabstract FINAL.
  PUBLIC SECTION.
    METHODS m2.
ENDCLASS.


CLASS c2 IMPLEMENTATION.
  METHOD m2.
    m1( ).
  ENDMETHOD.
ENDCLASS.

DATA oref TYPE REF TO c2.

START-OF-SELECTION.

CREATE OBJECT oref.
oref-&amp;gt;m2( ).
oref-&amp;gt;m3( ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS zcl_bhabstract DEFINITION LOAD. statement will make the se24 class zcl_bhabstract local to the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2008 13:02:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-03T13:02:49Z</dc:date>
    <item>
      <title>Abstract Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675841#M885200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hoe can i use a method in abstract class, in a different class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 12:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675841#M885200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T12:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Abstract Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675842#M885201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when its an interface use interface keyword &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise use INHERITING &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS class DEFINITION INHERITING FROM superclass 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 12:43:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675842#M885201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T12:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Abstract Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675843#M885202</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;see this example code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

CLASS c1 DEFINITION ABSTRACT.
  PUBLIC SECTION.
    METHODS m3.
  PROTECTED SECTION.
    METHODS m1.
  PRIVATE SECTION.
    DATA a1 TYPE string VALUE `Attribute A1 of class C1`.
ENDCLASS.

CLASS c2 DEFINITION INHERITING FROM c1 FINAL.
  PUBLIC SECTION.
    METHODS m2.
ENDCLASS.

CLASS c1 IMPLEMENTATION.
  METHOD m1.
    WRITE / a1.
  ENDMETHOD.
  METHOD m3.
    WRITE / 'public method from abstract class'.
  ENDMETHOD.
ENDCLASS.

CLASS c2 IMPLEMENTATION.
  METHOD m2.
    m1( ).
  ENDMETHOD.
ENDCLASS.

DATA oref TYPE REF TO c2.

START-OF-SELECTION.

CREATE OBJECT oref.
oref-&amp;gt;m2( ).
oref-&amp;gt;m3( ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 12:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675843#M885202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T12:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Abstract Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675844#M885203</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;By using interface or inheriting the super class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 12:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675844#M885203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T12:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Abstract Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675845#M885204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes U can use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But u have to implement all the other methods in the class. Bcz, the class is abstract class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Angi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 12:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675845#M885204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T12:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Abstract Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675846#M885205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Anu Chintalapudi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abstract classes are majorly used when u want to substitute a part of the class functionality through your own defined implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interfaces are generally used when you dont have an exact defined implementation to any of the methods in the class..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats why you define an interface for a class and we will use a class to implement that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Implementing Abstract class methods : &lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=8998584&amp;amp;messageID=4078691" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=8998584&amp;amp;messageID=4078691&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully it gives you some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rekha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 12:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675846#M885205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T12:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Abstract Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675847#M885206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how can i create the object for that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 12:47:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675847#M885206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T12:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Abstract Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675848#M885207</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;u cannot create object to abstract classes.so we will inherit it to some other class and create object for that.through that object we will call the abstract class methods.&lt;/P&gt;&lt;P&gt;see the example i have given above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 12:50:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675848#M885207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T12:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Abstract Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675849#M885208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abstract class is already in se24, i need to use a method from it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 12:56:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675849#M885208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T12:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Abstract Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675850#M885209</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;say ur abstract class is ZCL_BHABSTRACT&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS zcl_bhabstract DEFINITION LOAD.

CLASS c2 DEFINITION INHERITING FROM zcl_bhabstract FINAL.
  PUBLIC SECTION.
    METHODS m2.
ENDCLASS.


CLASS c2 IMPLEMENTATION.
  METHOD m2.
    m1( ).
  ENDMETHOD.
ENDCLASS.

DATA oref TYPE REF TO c2.

START-OF-SELECTION.

CREATE OBJECT oref.
oref-&amp;gt;m2( ).
oref-&amp;gt;m3( ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS zcl_bhabstract DEFINITION LOAD. statement will make the se24 class zcl_bhabstract local to the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 13:02:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abstract-class/m-p/3675850#M885209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T13:02:49Z</dc:date>
    </item>
  </channel>
</rss>

