Only By Using the Sealed Class or by creating the Private Constructor of it.
Interviews4 answers
What are the ways by which you can make sure that a class can not be inherited by other classes?
4 Answers
Vipin YadavPosted Jun 2, 2010, 9:22 PM EDT
1)By using Static Class
2)By using Sealed Class.
above both classes cannot be Inherited
Syed ShakeerPosted May 30, 2010, 1:55 AM EDT
sealed classes cannot be inherited by other classses.
kiran adhLAKHAPosted May 20, 2010, 4:26 AM EDT
i) make it sealed (C#)
ii) Declare the constructor as private.
Manas Ranjan DashPosted May 19, 2010, 6:36 PM EDT


