<?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: class and interface in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699576#M306734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unlike C++ Multiple inheritance is not allowed in ABAP and JAVA .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So handle such situations where multiple inheritance is required ABAP has come up with a concept called Interface. Interface is just a class that has only definition/declaration and has not been implemented. It is like an abstract class... Interfaces are implemented in classes.&lt;/P&gt;&lt;P&gt;Abstract classes can be inherited only once while using interfaces we can have multiple inheritance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this was helpful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Nov 2006 10:51:34 GMT</pubDate>
    <dc:creator>former_member69765</dc:creator>
    <dc:date>2006-11-17T10:51:34Z</dc:date>
    <item>
      <title>class and interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699574#M306732</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 difference between class and interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the meaning of below statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'compared to interfaces, abstract classes can be partly implemented but restricted by single inheritance'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i need notes on how to handle different events in OOABAP with examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 10:41:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699574#M306732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T10:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: class and interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699575#M306733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ..&lt;/P&gt;&lt;P&gt;Plz check this thread...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b5954f411d194a60000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b5954f411d194a60000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 10:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699575#M306733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T10:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: class and interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699576#M306734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unlike C++ Multiple inheritance is not allowed in ABAP and JAVA .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So handle such situations where multiple inheritance is required ABAP has come up with a concept called Interface. Interface is just a class that has only definition/declaration and has not been implemented. It is like an abstract class... Interfaces are implemented in classes.&lt;/P&gt;&lt;P&gt;Abstract classes can be inherited only once while using interfaces we can have multiple inheritance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this was helpful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 10:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699576#M306734</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2006-11-17T10:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: class and interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699577#M306735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi varun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can we create components (events,methods,types...etc ) for interface in class builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we can , tell me the situation where we use classes and interfaces.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 10:56:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699577#M306735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T10:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: class and interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699578#M306736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ABAP Objects, the same components (attributes, methods, constants, types, alias names) can be defined in an interface in largely the same way as in classes. However, interfaces do not have component visibility sections.&lt;/P&gt;&lt;P&gt;Interfaces are implemented in classes.&lt;/P&gt;&lt;P&gt;The interface name is listed in the definition part of the class. Interfaces can only be implemented &amp;#145;publicly&amp;#146; and are therefore always in the PUBLIC SECTION (this is only valid as of Release 4.6). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When to use Class and when interface largely depends on the design part. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these things are not simple.. you need to read in much detail to have a good understanding... give me ur mail Id.. I will mail you a document about OO ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I am able to explain you what u asked for... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reward points if it was helpful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 11:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699578#M306736</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2006-11-17T11:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: class and interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699579#M306737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi varun,&lt;/P&gt;&lt;P&gt;thanks a lot.&lt;/P&gt;&lt;P&gt;you said only valid as of Release 4.6.&lt;/P&gt;&lt;P&gt;what about from 4.7 onwards........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 11:28:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699579#M306737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T11:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: class and interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699580#M306738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, have a look at this example, it explains the usage of interfaces:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/48/4aad83b75211d194f50000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/48/4aad83b75211d194f50000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 11:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699580#M306738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T11:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: class and interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699581#M306739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is fundamentals of OO, I would suggest reading some OO basics book.  I would suggest read Thinking in Java's 3-4 chapters.  This is a free download from &lt;A href="https://community.sap.com/www.mindview.net" target="test_blank"&gt;www.mindview.net&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hith&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 17:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699581#M306739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T17:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: class and interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699582#M306740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interface forms the external point of contact for the class and it will not have an implementation part.&lt;/P&gt;&lt;P&gt;Taking a simple example:&lt;/P&gt;&lt;P&gt;Consider a car. The steering, clutch,accelerator, brake forms the interface through which you can control the working of the car,though you don't know what is actually happening inside the car.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the public components of the class can be included in the interface. The implementation part will be done in the implementing class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can go through the below document for knowing the syntax for using interfaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;You can also create interfaces in the class builder also. You can refer this document for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt" target="test_blank"&gt;http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Award points if found useful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 20:11:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699582#M306740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T20:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: class and interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699583#M306741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Firstly,a clear explanation that as we knw interface is only a collection of methods where as a class is something that holds methods with implementation.&lt;/P&gt;&lt;P&gt;Interfaces enable you to provide your very own functionality for each and every method accordingly and where as an abstract class is a class which has certain non-implemented methods apart from some implemented methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt;Abstract class defines few or none of the methods, but interface defines all the methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&amp;gt;Abstract classes should have subclasses else that will be useless..&lt;/P&gt;&lt;P&gt;Interfaces must have implementations by other classes else that will be useless&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&amp;gt;only an interface can extend another interface, but any class can extend an abstract class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&amp;gt;All variable in interfaces are final by default &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&amp;gt;If you are declaring a method as a abstact in a class then that class should be declared as an &lt;/P&gt;&lt;P&gt;    abstract class class_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&amp;gt;An abstract class can have abstract methods as well as concrete methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&amp;gt;An abstract class should have atleast one sub class and in that class all the mthods should implement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&amp;gt;An interface should be declared by using the keyword called interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&amp;gt;An interface may (or) may not have sub class implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&amp;gt;In an interface all the methods are concrete only. &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;Cheers,&lt;/P&gt;&lt;P&gt;Prasanthi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 06:23:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-and-interface/m-p/1699583#M306741</guid>
      <dc:creator>prasanthi_chavala</dc:creator>
      <dc:date>2006-12-18T06:23:20Z</dc:date>
    </item>
  </channel>
</rss>

