‎2009 Dec 19 9:52 AM
Hi all
Can we have protected method in Final class ?
If so how is it possible ?
Vicky
‎2009 Dec 19 10:10 AM
Hello
we cannot have protected method in final class.
Final class is used to prevent unwanted specialization by subclasses,
and hence it does not make any sense to have a protected method here more over,
it does not allow to do so.
Subin
‎2009 Dec 19 10:01 AM
Final classes cannot have subclasses and hence no need of protected methods.
No comments on possibility.
Check this link from SAP help to know more :
http://help.sap.com/saphelp_nw70/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm
Hope this helps you.
Edited by: Harsh Bhalla on Dec 19, 2009 3:35 PM
‎2009 Dec 19 10:10 AM
Hello
we cannot have protected method in final class.
Final class is used to prevent unwanted specialization by subclasses,
and hence it does not make any sense to have a protected method here more over,
it does not allow to do so.
Subin