07-11-2008 1:34 PM
07-11-2008 1:43 PM
hi,
What sujit mentioned is true about Final Class but for Abstract plz refer t othe Link.
http://www.sap-img.com/java/when-we-go-for-abstract-and-interface.htm
hope this will help.
Sumit Agarwal
07-11-2008 1:39 PM
Hi,
In SAP Final Class Means that class can not be inherited by any Child Class.
There is no such Abstract class in Sap
Regards,
Sujit
07-11-2008 1:41 PM
thnanx for ur reply sujit..
is it means we can not declare a class both final and abstract..
07-11-2008 1:47 PM
Hi,
Check yhis link there are dEtaild description about your Doubt-
Regards,
Sujit
07-11-2008 1:43 PM
hi,
What sujit mentioned is true about Final Class but for Abstract plz refer t othe Link.
http://www.sap-img.com/java/when-we-go-for-abstract-and-interface.htm
hope this will help.
Sumit Agarwal
07-11-2008 1:47 PM
07-11-2008 2:07 PM
Hi,
you can define a class as abstract AND final in ABAP OO, but it makes no sense I think.
To do this means at least that you could only use as 'static' defined class components.
You can't set an instance method static and final at the same time !
Regards
Olaf
08-01-2008 3:25 PM
Hi Olaf,
that was an intersting thing you pointed out.
But I still fail to justify allowing a class that is both abstract and final.
The usage that you mentioned should be actually served by an interface.
I also noted that the syntax check allows a class to be both final and abstract although an abstract method may be defined in it. This is again meaningless.
Zakir