ERP Database - The Unofficial ERP Knowledge Base

Facebook Twitter del.icio.us Digg it
ERP Database contains a huge collection of articles related to ERP System and Software. Many of the articles are specifically related to SAP. All these ERP/SAP articles are freely available to everyone.

If you would like to submit an article or share any document related to ERP or any specific ERP software. Please mail it to support@erpdb.info. Please make sure that the documents are not copyrighted.
Social Bookmarks:

Redefined Method

Print This Post Email This Post Written by admin on Sep 5th, 2008 | Filed under: ABAP

A Redefined method is a method in a subclass that provides a new definition of an inherited method from a super class in order to provide a more specialized implementation of the subclass.

The Redefined method will have the same name and interface, but will have a new implementation.

Redefined methods cannot be defined as final methods in the super class. Defining a method as final indicates that the method cannot be overridden or redefined.

A constructor method cannot be redefined as it is implicitly a final method.

The method declaration and implementation in the super class is not affected. The redefined method in the subclass “hides” the original method in the super class. All references to an object in the subclass will use the redefined method. The system checks for methods first in the current class and then ‘up the hierarchy’.

Only an inherited public or protected instance method can be redefined. Static Methods cannot be redefined.

Share

If you like this post, you may as well like these too:

  1. Should I use Instance Method or Static Method? Instance methods are called using the following syntax: CALL METHOD instance_name->instance_method_name A static method which is also called as class method can be called using the class and does not...
  2. Using IDOC Method in LSMW Download the Article from Rapidshare or Mediafire....
  3. Parallel Cursor Method in ABAP A program with the right functionality and smartly written, but with poor performance will not satisfy the client requirements. Business programs usually handle huge amounts of data. ABAP programs in...



Leave a Reply