What is single-ton pattern?how can we achieve this?

Questions by laxman23in

Showing Answers 1 - 1 of 1 Answers

rajesh

  • Nov 4th, 2005
 

hai,

singleton is a design pattern and is implemented to have restricted no of instances for a specific class. This is done by making the constructor of the class as private. So we can instantiate an object for the class only thru any of the method of that class but not from outside the class.

  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