-
Junior Member
Re: which 1 to use
I am not sure whether I understood your question or not!!.
But I want to share with you something.
If you want to make a class or method that can not be extended by other
classes. then declare that class or method as final. then that class
or method cannot be extended by other class
-
Junior Member
Re: which 1 to use
sorry frens.i think u didnt get my question.I am explaining again..
I got this question in an interview.
Which 1 i will choose if given a choice between extending an abstract class and implementing a interface ..which 1 I should opt.
NB:Class which ll either extnd or implement doesnt have any other requirements.
Pls ans i hope its now clear...
Thanks 4 ur replies.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules