<?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: error while redefining a class method derived from superclass in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-class-method-derived-from-superclass/m-p/772938#M38539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hari143,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ABAP Objects you can only override instance methods, not class methods. So your assumption that you might get into trouble later if you compile the coding could be true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your class does not need more than one instance (for example, because it is stateless or contains only class methods), a singleton is a viable alternative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this clarifies things a little bit...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Joerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jul 2004 17:00:09 GMT</pubDate>
    <dc:creator>joerg_wegener</dc:creator>
    <dc:date>2004-07-15T17:00:09Z</dc:date>
    <item>
      <title>error while redefining a class method derived from superclass</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-class-method-derived-from-superclass/m-p/772937#M38538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am not very familiar with ABAP. when am redefining a method of a class which is derived from a superclass in BW, i'm getting an error saying that the method is already defined.&lt;/P&gt;&lt;P&gt;these are the steps i followed.&lt;/P&gt;&lt;P&gt;1. create a class&lt;/P&gt;&lt;P&gt;2. after creating class, click on attributes tab and select superclass and assigned superclass in this field.&lt;/P&gt;&lt;P&gt;3. after inheriting all methods of its superclass, click on methods and select the method (method1) and click on "redefine" icon. I had put necessary ABAP code on the next screen.&lt;/P&gt;&lt;P&gt;4. when am activating, I'm getting an error that says the method (method1) is already defined with options "activate anyway", "process errors", "cancel". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting desired result if i select "process anyway", but am not sure if the error might cause other problems even after i activate the erroneous method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2004 20:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-class-method-derived-from-superclass/m-p/772937#M38538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-02T20:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: error while redefining a class method derived from superclass</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-class-method-derived-from-superclass/m-p/772938#M38539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hari143,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ABAP Objects you can only override instance methods, not class methods. So your assumption that you might get into trouble later if you compile the coding could be true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your class does not need more than one instance (for example, because it is stateless or contains only class methods), a singleton is a viable alternative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this clarifies things a little bit...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Joerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2004 17:00:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-class-method-derived-from-superclass/m-p/772938#M38539</guid>
      <dc:creator>joerg_wegener</dc:creator>
      <dc:date>2004-07-15T17:00:09Z</dc:date>
    </item>
  </channel>
</rss>

