How can we restrict class to be inherited?

Questions by kumarnaveen

Showing Answers 1 - 15 of 15 Answers

ysk

  • Dec 19th, 2011
 

Define your class as final , it may cant have subclass.

  Was this answer useful?  Yes

DHIRAj KUMAR

  • Dec 22nd, 2011
 

1) Declare class as a FINAL...

2) Declare constructor as a Private...!

  Was this answer useful?  Yes

kamal

  • Jan 2nd, 2012
 

use the final key word to do this

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions