I need to restrict a class by creating only one object throughout the application. How can I achieve this?

 Posted by Nishithraj on 12/31/2009 | Category: C# Interview questions | Views: 7351

We can declare the constructor of the class as either protected or as private

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Lmbajpai on: 5/27/2010
It can be achieved through Singleton class.

Login to post response

More Interview Questions by Nishithraj