2008 Jul 11 1:34 PM
2008 Jul 11 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
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
2008 Jul 11 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
2008 Jul 11 1:41 PM
thnanx for ur reply sujit..
is it means we can not declare a class both final and abstract..
2008 Jul 11 1:47 PM
Hi,
Check yhis link there are dEtaild description about your Doubt-
Regards,
Sujit
2008 Jul 11 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
2008 Jul 11 1:47 PM
2008 Jul 11 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
2008 Aug 01 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
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |