adspace
Answer Posted / Ashutosh Kumar Srivastava
The Singleton pattern is used when there should be only one instance of a class and that instance should provide services to all other parts of the program. It is useful in scenarios where the resources are expensive, such as database connections or network connections.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers