<?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 Objects.. Abastract &amp; Interface Class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335902#M799496</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;Abstraction is used to manage complexity &lt;/P&gt;&lt;P&gt;Focus on the essential characteristics&lt;/P&gt;&lt;P&gt;Eliminate the details&lt;/P&gt;&lt;P&gt;Find commonalities among objects&lt;/P&gt;&lt;P&gt; Defines the public contract&lt;/P&gt;&lt;P&gt;Public definition for users of the object  &lt;/P&gt;&lt;P&gt;The &amp;#147;Outside view&amp;#148;&lt;/P&gt;&lt;P&gt;Independent of implementation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interfaces are independent structures that you can implement in a class to extend the scope of that class. &lt;/P&gt;&lt;P&gt;a universal point of contact. &lt;/P&gt;&lt;P&gt;They provide one of the pillars of polymorphism, since they allow a single method within an interface to behave differently in different classes. &lt;/P&gt;&lt;P&gt;Global &amp;amp; Local Interfaces&lt;/P&gt;&lt;P&gt;	The definition of a local interface &amp;lt;intf&amp;gt; is enclosed in the statements:&lt;/P&gt;&lt;P&gt;	INTERFACE &amp;lt;intf&amp;gt;.&lt;/P&gt;&lt;P&gt;	...&lt;/P&gt;&lt;P&gt;	ENDINTERFACE.&lt;/P&gt;&lt;P&gt;The definition contains the declaration for all components (attributes, methods, events) of the interface. &lt;/P&gt;&lt;P&gt;They automatically belong to the public section of the class in which the interface is implemented.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2008 09:08:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-29T09:08:14Z</dc:date>
    <item>
      <title>ABAP Objects.. Abastract &amp; Interface Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335896#M799490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are the differences between &lt;STRONG&gt;Abstrac &amp;amp; Interface Class..&lt;/STRONG&gt; &amp;amp; In which condition we use abstract class and interace in Abap Objects?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 06:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335896#M799490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T06:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Objects.. Abastract &amp; Interface Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335897#M799491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abstract Classes are provided as incomplete blueprint for complete subclasses.&lt;/P&gt;&lt;P&gt;Classes with atleast one abstract method are themselves abstract.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interfaces are provided additional and independent of classes. They just describe which services are needed for a task to be carried out, but do not provide an implementation of the same.&lt;/P&gt;&lt;P&gt; It is similar (but not same) as an abstract class that only contains abstract methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarities between Interface and Abstract classes.&lt;/P&gt;&lt;P&gt;1. Both CANNOT be instantiated.&lt;/P&gt;&lt;P&gt;2. Can have references to both of them, which can hold objects of subclasses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Differences.&lt;/P&gt;&lt;P&gt;1. Abstract classes contain one or more abstract methods - abstract methods  are those which cannot have an implementation in the class itself.&lt;/P&gt;&lt;P&gt;2. Interfaces have all their methods abstract - none of them can have an implementation.&lt;/P&gt;&lt;P&gt;3. No visibility sections (PUBLIC, PRIVATE, PROTECTED) can be defined for interfaces, but can be defined for abstract classes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 06:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335897#M799491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T06:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Objects.. Abastract &amp; Interface Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335898#M799492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Versha,&lt;/P&gt;&lt;P&gt;Thanx for Reply.&lt;/P&gt;&lt;P&gt;I know all these points, but I want to know &lt;STRONG&gt;In which condition we go for Abstarct &amp;amp; Interface, &amp;amp; which one is good performance wise&lt;/STRONG&gt; that i want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards.&lt;/P&gt;&lt;P&gt;Ranveer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 07:17:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335898#M799492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T07:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Objects.. Abastract &amp; Interface Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335899#M799493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranveer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Performance wise, I would advise you to go for interfaces. &lt;/P&gt;&lt;P&gt;Interfaces are more generic than abstract classes. So, they have a wider acceptance and wider applicability.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not know the nature of subclasses that will require inheritance, go for interfaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By coding abstract classes, you would be restricting atleast some if not all your development for further use of your subclasses. You would require to be very clear about certain functionalities of the abstract class and subclasses when you design abstract classes.&lt;/P&gt;&lt;P&gt;Unless you have a very specific design reason to do so, do not go for abstract classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 07:52:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335899#M799493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T07:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Objects.. Abastract &amp; Interface Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335900#M799494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ranveer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot instantiate objects in an abstract class. This does not, however, mean that references to such&lt;/P&gt;&lt;P&gt;classes are meaningless. On the contrary, they are very useful, since they can (and must) refer to&lt;/P&gt;&lt;P&gt;instances in subclasses of the abstract class during runtime. The CREATE-OBJECT statement is extended&lt;/P&gt;&lt;P&gt;in this context. You can enter the class of the instance to be created explicitly:&lt;/P&gt;&lt;P&gt;CREATE OBJECT &amp;lt;RefToAbstractClass&amp;gt; TYPE &amp;lt;NonAbstractSubclassName&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abstract classes are normally used as an incomplete blueprint for concrete (that is, non-abstract)&lt;/P&gt;&lt;P&gt;subclasses, in order to define a uniform interface, for example.&lt;/P&gt;&lt;P&gt;Abstract instance methods are used to specify particular interfaces for subclasses, without having to&lt;/P&gt;&lt;P&gt;immediately provide implementation for them. Abstract methods need to be redefined and thereby&lt;/P&gt;&lt;P&gt;implemented in the subclass (here you also need to include the corresponding redefinition statement in the&lt;/P&gt;&lt;P&gt;DEFINITION part of the subclass).&lt;/P&gt;&lt;P&gt;Classes with at least one abstract method are themselves abstract&lt;/P&gt;&lt;P&gt;Static methods and constructors cannot be abstract (they cannot be redefined).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interface only has a declaration &lt;/P&gt;&lt;P&gt;An interface corresponds to an abstract class that&lt;/P&gt;&lt;P&gt;only contains abstract methods&lt;/P&gt;&lt;P&gt;Interfaces are implemented in classes&lt;/P&gt;&lt;P&gt;Interfaces do not have visibility sections&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope this is helpful, Do reward.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 08:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335900#M799494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T08:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Objects.. Abastract &amp; Interface Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335901#M799495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Abstract class is a class which contain one or more abstract methods, which has to be implemented by sub classes. Inteface is a Java Object containing method declaration and doesn't contain implementation. The classes which have implementing the Interfaces must provide the method defination for all the methods.2. Abstract class is a Class prefix wtih a abstract keyword followed by Class definaton. Interacace is a Interface which starts with interface keyword.3. Abstract class contatins one or more abstract methods. where as Interface contains all abstract methods and final declarations.4. Abstract class contains the method defination of the some methods. but Interface contains only method declaration, no defination provided.5. Abstract classes are useful in a situation that Some general methods should be implemented and specialization behaviour should be implemented by child classes. Interafaces are useful in a situation that all properties should be implemented we can use this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the main differences between an interface class and abstract class are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.abstract classes must be given by keyword abstract,where as in interface class with key word interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.every method in interface class should be abstract,but this is not necessary in abstract class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.by default what ever variables we decalre in interface are public static final,where as in abstract class they can be default and instance variables also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vasavi.&lt;/P&gt;&lt;P&gt;kindly reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 08:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335901#M799495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T08:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Objects.. Abastract &amp; Interface Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335902#M799496</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;Abstraction is used to manage complexity &lt;/P&gt;&lt;P&gt;Focus on the essential characteristics&lt;/P&gt;&lt;P&gt;Eliminate the details&lt;/P&gt;&lt;P&gt;Find commonalities among objects&lt;/P&gt;&lt;P&gt; Defines the public contract&lt;/P&gt;&lt;P&gt;Public definition for users of the object  &lt;/P&gt;&lt;P&gt;The &amp;#147;Outside view&amp;#148;&lt;/P&gt;&lt;P&gt;Independent of implementation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interfaces are independent structures that you can implement in a class to extend the scope of that class. &lt;/P&gt;&lt;P&gt;a universal point of contact. &lt;/P&gt;&lt;P&gt;They provide one of the pillars of polymorphism, since they allow a single method within an interface to behave differently in different classes. &lt;/P&gt;&lt;P&gt;Global &amp;amp; Local Interfaces&lt;/P&gt;&lt;P&gt;	The definition of a local interface &amp;lt;intf&amp;gt; is enclosed in the statements:&lt;/P&gt;&lt;P&gt;	INTERFACE &amp;lt;intf&amp;gt;.&lt;/P&gt;&lt;P&gt;	...&lt;/P&gt;&lt;P&gt;	ENDINTERFACE.&lt;/P&gt;&lt;P&gt;The definition contains the declaration for all components (attributes, methods, events) of the interface. &lt;/P&gt;&lt;P&gt;They automatically belong to the public section of the class in which the interface is implemented.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 09:08:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335902#M799496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T09:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Objects.. Abastract &amp; Interface Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335903#M799497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Runal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx for Reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we use abstract class with interface... if yes then in which condition &amp;amp; can we redefine or inherit abstarct class or interface class and when?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Best Regards&lt;/P&gt;&lt;P&gt;Ranveer Singh&lt;/P&gt;&lt;P&gt;ranveerpsingh@gmail.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 09:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects-abastract-interface-class/m-p/3335903#M799497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T09:11:11Z</dc:date>
    </item>
  </channel>
</rss>

