<?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 between abstract class &amp; Interface? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993788#M707160</link>
    <description>&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Interface:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Can contain only abstract methods. &lt;/P&gt;&lt;P&gt;2. By default all methods are abstract.&lt;/P&gt;&lt;P&gt;3. All components of interface by default are 

public. &lt;/P&gt;&lt;P&gt;4. Interface components must be prefixed with the 

name of the interface.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abstract Class:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Can contain both abstract and non-abstract 

methods. &lt;/P&gt;&lt;P&gt;2. Explicitly we need to use abstract keyword. &lt;/P&gt;&lt;P&gt;3. Abstract methods can be declared in public  or 

protected section. &lt;/P&gt;&lt;P&gt;4. A class can inherit only one abstract class.&lt;/P&gt;&lt;P&gt;5. Abstract class components are directly referred 

in subclass.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nasreen&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jan 2021 12:54:40 GMT</pubDate>
    <dc:creator>former_member697780</dc:creator>
    <dc:date>2021-01-01T12:54:40Z</dc:date>
    <item>
      <title>difference between abstract class &amp; Interface?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993782#M707154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;difference between abstract class &amp;amp; Interface?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 08:56:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993782#M707154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-05T08:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: difference between abstract class &amp; Interface?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993783#M707155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="288181"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="416785"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me reward points...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 09:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993783#M707155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-05T09:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: difference between abstract class &amp; Interface?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993784#M707156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prahlad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;an interface contains &amp;lt;b&amp;gt;no implementation&amp;lt;/b&amp;gt;, just the definition. The definition is the name of the class, the name of the methods, the name and type of the class attributes and the method parameters. The implementation is essentially the abap source code contained in the methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An abstract class contains &amp;lt;b&amp;gt;both definition and implementation&amp;lt;/b&amp;gt; but cannot be instantiated. You can only use an abstract class to create subclasses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 22:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993784#M707156</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2007-11-05T22:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: difference between abstract class &amp; Interface?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993785#M707157</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 05:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993785#M707157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T05:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: difference between abstract class &amp; Interface?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993786#M707158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abstract class is the class in which there is atleast one &lt;/P&gt;&lt;P&gt;abstract method.abstract method is the method which does not &lt;/P&gt;&lt;P&gt;have any body defined in that class.We cannot make any object of &lt;/P&gt;&lt;P&gt;the abstract class.So, that abstract class must be derived by &lt;/P&gt;&lt;P&gt;the subclass which defines all the abstract methods of the super &lt;/P&gt;&lt;P&gt;class.If the sub class doesnot define any abstract meth. of the &lt;/P&gt;&lt;P&gt;super class, then that sub class automatically becomes the &lt;/P&gt;&lt;P&gt;abstract class.When the sub class defines all the abs. meth.s of &lt;/P&gt;&lt;P&gt;the super class then we can make the object of the sub class and &lt;/P&gt;&lt;P&gt;access the other methods of the abs. super class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An interface is the class that have all the methods as abs. &lt;/P&gt;&lt;P&gt;methods.All the instance variables of an interface must be &lt;/P&gt;&lt;P&gt;declared as final and static.Now we can implement this interface &lt;/P&gt;&lt;P&gt;in another class which must define all the methods of the &lt;/P&gt;&lt;P&gt;interface.Now make the obj. of the class that implemented the &lt;/P&gt;&lt;P&gt;interface. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interfaces are used where we want the users to use the specified &lt;/P&gt;&lt;P&gt;methods only.Abstract classes are used in inheritence where &lt;/P&gt;&lt;P&gt;there is no need for the class to define any method which must &lt;/P&gt;&lt;P&gt;be defined in the sub classes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please the feedback for the above answer.There's too much about &lt;/P&gt;&lt;P&gt;the abstract class n interface so i could not write everything.I &lt;/P&gt;&lt;P&gt;think this must clear ur doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Parvez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 10:39:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993786#M707158</guid>
      <dc:creator>former_member2382</dc:creator>
      <dc:date>2007-11-06T10:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: difference between abstract class &amp; Interface?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993787#M707159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prahlad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basic difference between Abstract class and interface is abstract class will have implementation and Interface will not have any implementation. Basically we will go for abstract classes when we want to write partial implementation of the class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful,&lt;/P&gt;&lt;P&gt;Aleem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 11:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993787#M707159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T11:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: difference between abstract class &amp; Interface?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993788#M707160</link>
      <description>&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Interface:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Can contain only abstract methods. &lt;/P&gt;&lt;P&gt;2. By default all methods are abstract.&lt;/P&gt;&lt;P&gt;3. All components of interface by default are 

public. &lt;/P&gt;&lt;P&gt;4. Interface components must be prefixed with the 

name of the interface.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abstract Class:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Can contain both abstract and non-abstract 

methods. &lt;/P&gt;&lt;P&gt;2. Explicitly we need to use abstract keyword. &lt;/P&gt;&lt;P&gt;3. Abstract methods can be declared in public  or 

protected section. &lt;/P&gt;&lt;P&gt;4. A class can inherit only one abstract class.&lt;/P&gt;&lt;P&gt;5. Abstract class components are directly referred 

in subclass.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nasreen&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 12:54:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993788#M707160</guid>
      <dc:creator>former_member697780</dc:creator>
      <dc:date>2021-01-01T12:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: difference between abstract class &amp; Interface?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993789#M707161</link>
      <description>&lt;P&gt;Interface in SAP is a mechanism to achieve 100 % abstraction.&lt;/P&gt;&lt;P&gt;There can only be abstract methods not a method body.&lt;/P&gt;&lt;P&gt;it is used to achieve the multiple inheritance.&lt;/P&gt;&lt;P&gt;The main goal of abstraction is to handle the complexity by hiding unncessary details from the user.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 20:24:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993789#M707161</guid>
      <dc:creator>former_member778361</dc:creator>
      <dc:date>2021-11-27T20:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: difference between abstract class &amp; Interface?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993790#M707162</link>
      <description>&lt;P&gt;Thanks for coming to SAP
Community for answers. The original question has received a helpful answer
already, please post your question as a new question &lt;A href="https://answers.sap.com/questions/ask.html"&gt;here&lt;/A&gt;:&lt;/P&gt;

&lt;P&gt;Since you're
new in asking questions here, check out our &lt;A href="https://community.sap.com/resources/questions-and-answers"&gt;our&lt;/A&gt;&lt;A href="https://community.sap.com/resources/questions-and-answers"&gt;tutorial
about asking and answering questions&lt;/A&gt; (if
you haven't already), as it provides tips for preparing questions more
effectively, that draw responses from our members. &lt;/P&gt;

&lt;P&gt;Please note,
that your post here won't be answered.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 20:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-abstract-class-interface/m-p/2993790#M707162</guid>
      <dc:creator>former_member751591</dc:creator>
      <dc:date>2021-11-27T20:24:42Z</dc:date>
    </item>
  </channel>
</rss>

