Amit Maheshwari

Amit Maheshwari

  • NA
  • 5.4k
  • 1.4m

Restriction to make an object of a class in C#

Jan 30 2012 6:12 PM
Hi friends,

I want to know that I have a class and want to get restriction on the making of objects of that class? If I have restriction that we have to make only 5 objects of that class and if we are making 6th one then object should not created so anyone know such phenomenon that we can restricted a class to make an object to a limit then tell me? How it is possible?

Answers (1)