<?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: what is interface in oops. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-interface-in-oops/m-p/2189104#M466510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An interface is a collection of declaration of methods. These methods do not contain an implementation in the interface. The implementation is provided by the respective class that implements the interface. Thus, a single declaration of a method in an interface is usable by different classes to provide separate implementations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read more about abap objects in the abap help and you will come to know in details.&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;Priyank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2007 07:46:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-27T07:46:53Z</dc:date>
    <item>
      <title>what is interface in oops.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-interface-in-oops/m-p/2189102#M466508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guru&lt;/P&gt;&lt;P&gt;please tell me what is interface in oops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;subhasis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 06:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-interface-in-oops/m-p/2189102#M466508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T06:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: what is interface in oops.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-interface-in-oops/m-p/2189103#M466509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please the search functionality of this forum. Because this question is certainly asked before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But :&lt;/P&gt;&lt;P&gt;An interface is a class with only a definition (methods). The implementation is done by another class (can be a ZCL - customer class) where you can add the interface class as interface in the properties.&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;Hans&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward all helpful answers !!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 06:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-interface-in-oops/m-p/2189103#M466509</guid>
      <dc:creator>h_senden2</dc:creator>
      <dc:date>2007-04-27T06:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: what is interface in oops.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-interface-in-oops/m-p/2189104#M466510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An interface is a collection of declaration of methods. These methods do not contain an implementation in the interface. The implementation is provided by the respective class that implements the interface. Thus, a single declaration of a method in an interface is usable by different classes to provide separate implementations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read more about abap objects in the abap help and you will come to know in details.&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;Priyank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 07:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-interface-in-oops/m-p/2189104#M466510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T07:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: what is interface in oops.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-interface-in-oops/m-p/2189105#M466511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check out the example of interface :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program will show simple use of an interface with its own data and methods and how it is implemented in a class. It will also show that there can be methods of same name for an interface and the class implementing the interface.&lt;/P&gt;&lt;P&gt;This program contains an interface I1 with attribute : NUM an method : METH1.&lt;/P&gt;&lt;P&gt;This interface is implemented in a class : C1 which also has its own method METH1.&lt;/P&gt;&lt;P&gt;An object OREF is created from class C1 and both the methods METH1 , one for class and another for interface is called using the object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ysubdel .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interface i1.&lt;/P&gt;&lt;P&gt; data    : num type i .&lt;/P&gt;&lt;P&gt; methods : meth1.&lt;/P&gt;&lt;P&gt;endinterface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; class c1 definition.&lt;/P&gt;&lt;P&gt;  public section.&lt;/P&gt;&lt;P&gt;   methods : meth1.       &amp;#147; class C1&amp;#146;s own method&lt;/P&gt;&lt;P&gt;   interfaces : i1.&lt;/P&gt;&lt;P&gt; endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; class c1 implementation.&lt;/P&gt;&lt;P&gt;  method : meth1.&lt;/P&gt;&lt;P&gt;   write:/5 'I am meth1 in c1'.&lt;/P&gt;&lt;P&gt;  endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  method i1~meth1.&lt;/P&gt;&lt;P&gt;   write:/5 'I am meth1 from i1'.&lt;/P&gt;&lt;P&gt;  endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; start-of-selection.&lt;/P&gt;&lt;P&gt;  data : oref type ref to c1.&lt;/P&gt;&lt;P&gt;  create object oref.&lt;/P&gt;&lt;P&gt;  write:/5 oref-&amp;gt;i1~num.&lt;/P&gt;&lt;P&gt;  call method oref-&amp;gt;meth1.&lt;/P&gt;&lt;P&gt;  call method oref-&amp;gt;i1~meth1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          0          &lt;/P&gt;&lt;P&gt; I am meth1 in c1    &lt;/P&gt;&lt;P&gt; I am meth1 from i1  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 08:46:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-interface-in-oops/m-p/2189105#M466511</guid>
      <dc:creator>sonu_p2</dc:creator>
      <dc:date>2007-04-27T08:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: what is interface in oops.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-interface-in-oops/m-p/2189106#M466512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subhasis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Interfaces are defined independently of classes.  &lt;/P&gt;&lt;P&gt;2. They can contain declarations for elements such as attributes and methods.&lt;/P&gt;&lt;P&gt;3. Interfaces are implemented by classes&lt;/P&gt;&lt;P&gt;4. The classes then have a uniform external point of contact. They must provide all &lt;/P&gt;&lt;P&gt;     of the functions of the interface by implementing its methods. &lt;/P&gt;&lt;P&gt;5.  In a program, you can create reference variables with reference to interfaces.&lt;/P&gt;&lt;P&gt;6. However, you cannot instantiate an interface. &lt;/P&gt;&lt;P&gt;7. Interface references can, however, point to objects of different classes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz reward points if helpful or if it solves ur query.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chinmay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 10:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-interface-in-oops/m-p/2189106#M466512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T10:46:01Z</dc:date>
    </item>
  </channel>
</rss>

