<?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 overloading in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/overloading/m-p/5364871#M1234560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone pls tell me why overloading in not possible in ABAP?? they ve asked me this quetion in an interview..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Krish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2009 03:56:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-07T03:56:39Z</dc:date>
    <item>
      <title>overloading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overloading/m-p/5364871#M1234560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone pls tell me why overloading in not possible in ABAP?? they ve asked me this quetion in an interview..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Krish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 03:56:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overloading/m-p/5364871#M1234560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T03:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: overloading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overloading/m-p/5364872#M1234561</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;To test it do it this way.&lt;/P&gt;&lt;P&gt; First try create two methods in the same class with same name.&lt;/P&gt;&lt;P&gt; but there parameter should be different. mean one method contain only one import parameter another contain 2 parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now try to call them one by one by an object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you call them that mean overloading is possible otherwise not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;And Method OverLoading is Not possibel in ABAP Objects.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason: As Method overloading is done on the basis of number of parameters that you pass to the function.&lt;/P&gt;&lt;P&gt;but in ABAP Obejcts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you implement the class there is no differtiation between methods on the basis of number of parameters you want to pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class xxx definition.&lt;/P&gt;&lt;P&gt;public section.&lt;/P&gt;&lt;P&gt;Method :&lt;/P&gt;&lt;P&gt;area importing len type i,&lt;/P&gt;&lt;P&gt;area importing len type c width type c.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class xxx implementation.&lt;/P&gt;&lt;P&gt;Method area .&lt;/P&gt;&lt;P&gt;&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;In the class implementaion ,we need to differentiate on the basis of number of parameters which we pass but we can not and only one one implemetation is possible for a function. so we can not have multiple functinalty inmplemented for a method with same name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Punit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Punit Singh on Apr 7, 2009 8:33 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Apr 7, 2009 9:36 AM - changed "function module" to "method"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 06:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overloading/m-p/5364872#M1234561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T06:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: overloading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overloading/m-p/5364873#M1234562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; hi there,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; can anyone pls tell me why overloading in not possible in ABAP?? they ve asked me this quetion in an interview..&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Krish&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because that's how SAP designed the ABAP Objects language.  Overloading isn't needed anyway, because you can mark parameters as optional - this allows you to do anything that you could do with overloading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 07:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overloading/m-p/5364873#M1234562</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-04-07T07:38:32Z</dc:date>
    </item>
  </channel>
</rss>

