‎2008 Apr 11 6:45 PM
Hi experts,
I am trying to check (icon with 2 squares) a class which is inherited from a super class. I am getting the following message, Implementation missing for method "XYZ". I double click on the method but it doesnt open and giv me a message Method is abstract and has not been redefined. There is another which is based on the same superclass which is working fine. It has 3 methods which are checked for abstract when i click on technical information. In my class, when I click on the technical information, all buttons are greyed out.
What shouls I do to make this class complie successfully.
‎2008 Apr 11 6:52 PM
Hi zsl05,
If a class method is defined as ABSTRACT then that method needs to be redefined in the subclass. So You need to Re-define by clicking the re-define icon on the sub-class for that method. Then only you can see the method implementation details.
Let me know if you have any question.
Thanks,
Greetson
‎2008 Apr 11 7:01 PM
Greetson,
That was perfect.
BTW, is there any reference material I can use to get my way with the class.
‎2008 Apr 11 7:06 PM
Hi,
Read help.sap.com and also search in google you will get lot of PDF's about ABAP objects.
Thanks,
Greetson
‎2008 Apr 11 6:59 PM
Abstract instance methods are used to specify particular interfaces for subclasses, without having to
immediately provide implementation for them. Abstract methods need to be redefined and thereby
implemented in the subclass.
G@urav.
‎2008 Apr 11 7:02 PM
Thanks Gaurav,
Where did you learn this. Is there any material I can use to get good knowledge about it.
‎2008 Apr 11 7:05 PM